Pensavo che tu avessi mangiato tutta la torta! I thought that you had eaten the entire cake!
As we can see in the example above, just like our previous subjunctive tenses, we need a two-clause sentence to use the past perfect subjunctive. To use the past perfect subjunctive, the action in the dependent clause must have occurred before the action in the independent clause. Additionally, the independent clause must contain a subjunctive-trigger verb in the imperfect or past perfect tense which generates the past perfect subjunctive verb in the dependent clause.
To create past perfect subjunctive verbs, you must use avere or essere as auxiliary verbs, as with our indicative past tenses, but they must be in their imperfect forms: