Spanish compound tenses, which are also called perfect tenses, always consist of 2 parts: some form of the verb haber, followed by the past participle (the -do form) of the main verb. Most compound tenses are used to describe actions or states that happened earlier than the time of reference for the corresponding simple tense AND that are still relevant in some way at the time of reference.
|Simple tense||Example||Compound tense||Example||Translation|
|infinitive||hablar||perfect infinitive||haber hablado||to have spoken|
|past participle||hablado||perfect past participle||habido hablado||had spoken|
|present participle||hablando||perfect present participle||habiendo hablado||having spoken|
|present indicative||habla||present perfect||ha hablado||He/She has spoken / You have spoken|
|imperfect||hablaba||pluperfect indicative||había hablado||He/She/You had spoken|
|preterit||habló||preterit perfect (*)||hubo hablado (*)||He/She/You had spoken (*)|
|future||hablará||future perfect||habrá hablado||He/She/You will have spoken|
|conditional||hablaría||conditional perfect||habría hablado||He/She/You would have spoken|
|present subjunctive||hable||present subjunctive perfect||haya hablado||He/She have/has spoken / You have spoken|
|past subjunctive||hablara/hablase||pluperfect subjunctive||hubiera/hubiese hablado||He/She have/had spoken / You had spoken|
(*) Preterit perfect (pretérito anterior) is used almost exclusively in literary contexts, and is almost never used in speech. It appears only after expressions that can be translated as "as soon as", including después (de) que, luego que, así que, no bien, enseguida que, en cuanto, tan pronto como, apenas, and perhaps a couple of regional expressions.