'They had left by the time I got home.'
When we talk about the past we use the past simple tense:
'He came home.'
When we want to talk about something that happened before this we use the past perfect tense:
'I had finished before he came home.'
The past perfect simple is: had + past participle:
'By the time Sue went shopping, the shops had closed.'
'Bill Gates had made millions of dollars before he was 30.'
'The car was clean. They had washed it every weekend.'
'My family had had that dog for years.'
The present perfect is connected to the present time.
'I have never been to Canada.'
The past perfect is connected to a time in the past that has finished.
'Before I got married, I had never been to Canada.'
Notice that the adverb (never, always, just, only, etc.) comes between had and the past participle.
Link: Irregular verb list
Link: How to use' have' and 'has
Now complete the sentences using the past perfect: