The 1987 election had resulted in a parliamentary deadlock. The opposition bloc of the People's Alliance and the CDS held 49 seats against 47 for the PSOE and IU. The ruling PSOE was initially able to hold on to power and have Joaquín Leguina re-elected President thanks to CDS' abstention, but nonetheless the government's majority remained precarious. In 1988, an AP deputy, Nicolás Piñeiro Cuesta, resigned from the party as a result of ideological differences with the Madrid AP leader, Alberto Ruiz-Gallardón. Piñeiro launched his own party, the Independent Madrilenian Regional Party, shortly after. Thereafter, in January 1989, AP along with other parties merged into the newly-created People's Party. In the first half of 1989, the PP and the CDS reached an agreement of cooperation in the Madrid Assembly, resulting in a motion of no confidence against Leguina's government in June 1989, in an attempt to replace it with a PP-CDS administration headed by Ruiz-Gallardón as Madrid President. To succeed, the motion needed the support of a majority of members, meaning that 49 votes were needed. With the PP and CDS having 48 members, Piñeiro's support was necessary. However, he abstained, and the United Left members blocked the motion alongside PSOE, resulting in the vote failing.
Electoral system
The Assembly of Madrid was the devolved, unicameral legislature of the autonomous community of Madrid, having legislative power in regional matters as defined by the Spanish Constitution and the Madrilenian Statute of Autonomy, as well as the ability to vote confidence in or withdraw it from a President of the Community. Voting for the Assembly was on the basis of universal suffrage, which comprised all nationals over eighteen, registered in the Community of Madrid and in full enjoyment of their political rights. All members of the Assembly of Madrid were elected using the D'Hondt method and a closed list proportional representation, with a threshold of 5 percent of valid votes—which included blank ballots—being applied regionally. Parties not reaching the threshold were not taken into consideration for seat distribution. The Assembly was entitled to one member per each 50,000 inhabitants or fraction greater than 25,000. The electoral law provided that parties, federations, coalitions and groupings of electors were allowed to present lists of candidates. However, groupings of electors were required to secure the signature of at least 0.5 percent of the electors registered in the Community of Madrid. Electors were barred from signing for more than one list of candidates. Concurrently, parties and federations intending to enter in coalition to take part jointly at an election were required to inform the relevant Electoral Commission within ten days of the election being called.
Election date
The term of the Assembly of Madrid expired four years after the date of its previous election. Legal amendments earlier in 1991 established that elections to the Assembly were to be fixed for the fourth Sunday of May every four years. The previous election was held on 10 June 1987, setting the election date for the Assembly on Sunday, 26 May 1991. After legal amendments in 1990, the President of the Community was granted the prerogative to dissolve the Assembly of Madrid and call a snap election, provided that no motion of no confidence was in process and that dissolution did not occur before one year had elapsed since the previous one. In the event of an investiture process failing to elect a regional President within a two-month period from the first ballot, the Assembly was to be automatically dissolved and a fresh election called. Any snap election held as a result of these circumstances would not alter the period to the next ordinary election, with elected deputies merely serving out what remained of their four-year terms.
Opinion polls
The table below lists voting intention estimates in reverse chronological order, showing the most recent first and using the dates when the survey fieldwork was done, as opposed to the date of publication. Where the fieldwork dates are unknown, the date of publication is given instead. The highest percentage figure in each polling survey is displayed with its background shaded in the leading party's colour. If a tie ensues, this is applied to the figures with the highest percentages. The "Lead" column on the right shows the percentage-point difference between the parties with the highest percentages in a given poll. When available, seat projections are also displayed below the voting estimates in a smaller font. 51 seats were required for an absolute majority in the Assembly of Madrid.
Results
Aftermath
Investiture processes to elect the President of the Community of Madrid required for an absolute majority—more than half the votes cast—to be obtained in the first ballot. If unsuccessful, a new ballot would be held 48 hours later requiring of a simple majority—more affirmative than negative votes—to succeed. If none of such majorities were achieved, successive candidate proposals could be processed under the same procedure. In the event of the investiture process failing to elect a regional President within a two-month period from the first ballot, the Assembly would be automatically dissolved and a snap election called.