The past perfect tense is used to show that an action was completed before another action in the past. It is formed by using "had" followed by the past participle of the verb. For example, "She had already finished her homework before her friends arrived." It helps to show the sequence of events in the past.