Breakdown of Me alegro de que la campaña electoral haya terminado.
que
that (relative pronoun, conjunction)
terminar
to finish / to end up (in a state) / to quite manage (in negatives, + infinitive)
haber
to have (auxiliary)
la campaña
the campaign
Questions & Answers about Me alegro de que la campaña electoral haya terminado.
Why is electoral placed after campaña? Can it go before the noun?
Could I emphasize this by saying it was a muy electoral (very electoral) campaign?
No, you cannot. Because electoral classifies the noun into a strict category, a campaign either is electoral or it is not. You cannot use degree modifiers like muy (very) or bastante (quite) with relational adjectives.
Why is there a de before que in Me alegro de que?
The pronominal verb alegrarse (to be glad) requires the preposition de to introduce the cause of the happiness (alegrarse de algo). Even when that cause is a full clause starting with que, the de must stay. Dropping it is a common mistake known as queismo.
Why do we use the subjunctive haya terminado here instead of the indicative ha terminado?
The main clause Me alegro de que expresses an emotion about an event. In Spanish, reacting emotionally to an event triggers the subjunctive mood in the following clause. Because the campaign has already finished, we use the present perfect subjunctive (haya terminado) to connect this past completion to your present emotion.