We form the past perfect with had + past participle. We use the past perfect for a past action which happened before another past action.