In our previous lesson on the indicative past tense, we’ve explained the foundational structure of how this tense is formed: it is a compound tense that requires either avere or essere as an auxiliary verb to a past participle.
The past subjunctive tense is required instead of the past indicative tense (passato prossimo or passato remoto) whenever the subjunctive is required: