A past before another past.
Plusquamperfekt uses hatte or war + past participle to show that one event was already complete before another past event.
Hinglish hintDo past events mein jo pehle hua uske liye hatte/war plus Partizip II use karo.
Put events in order
First eating, then leaving: the earlier event uses hatte gegessen.
Sie war schon gegangen, als ich ankam.
Aha! See the common trap
Not thisSie hatte schon gegangen, als ich ankam.
Try thisSie war schon gegangen, als ich ankam.
Gehen forms its compound past with sein; in Plusquamperfekt use war gegangen.
More examples, less guessing
Nachdem ich gegessen hatte, ging ich los.After I had eaten, I set off.
Er war schon gegangen, als ich ankam.Practice the highlighted construction in another context.
Wir hatten den Text gelesen, bevor der Kurs begann.Practice the highlighted construction in another context.