The past perfect is all about what happened in the past.
Usually there's two actions that both took place in the past. The action that happened first will be in the past perfect and the second will be in past simple. This tense is all about showing what happened first and what happened after
He left the house after he had done the dishes.
We biked to school after we had missed the bus.