# 1987 Madrid City Council election

The 1987 Madrid City Council election, also the 1987 Madrid municipal election, was held on Wednesday, 10 June 1987, to elect the 3rd City Council of the municipality of Madrid. All 55 seats in the City Council were up for election. The election was held simultaneously with regional elections in thirteen autonomous communities and local elections all throughout Spain, as well as the 1987 European Parliament election.
The Spanish Socialist Workers' Party (PSOE) won the election, but lost its absolute majority and lost 137,000 votes compared to 1983. The People's Alliance (AP), which stood separately after the breakup of the People's Coalition in 1986, failed to meet the level of support reached by the coalition in 1983 and also lost votes and seats. Benefitting from both parties' losses was the Democratic and Social Centre (CDS), which, with its 8 seats and 15% of the votes, entered the City Council for its first and only time and went on to hold the balance of power. United Left (IU), an electoral coalition comprising the Communist Party of Spain and other left-wing parties, continued on its long-term decline and lost 1 more seat, barely obtaining 100,000 votes and 6% of the share.
AP and CDS together reached an absolute majority, but failure on reaching an agreement resulted in Socialist Juan Barranco being re-elected as mayor. However, in June 1989, both parties agreed to present a motion of censure on Barranco and elect Agustín Rodríguez Sahagún from the CDS as new mayor, ousting the PSOE from power in the city after a 10-year rule.

## Electoral system

The City Council of Madrid (Spanish: Ayuntamiento de Madrid) was the top-tier administrative and governing body of the municipality of Madrid, composed of the mayor, the government council and the elected plenary assembly. Voting for the local assembly was on the basis of universal suffrage, which comprised all nationals over 18 years of age, registered in the municipality of Madrid and in full enjoyment of their political rights, as well as resident non-nationals whose country of origin allowed Spanish nationals to vote in their own elections by virtue of a treaty.
Local councillors were elected using the D'Hondt method and a closed list proportional representation, with an electoral threshold of five percent of valid votes—which included blank ballots—being applied in each local council. Councillors were allocated to municipal councils based on the following scale:
| Population | Councillors |
| <250 | 5 |
| 251–1,000 | 7 |
| 1,001–2,000 | 9 |
| 2,001–5,000 | 11 |
| 5,001–10,000 | 13 |
| 10,001–20,000 | 17 |
| 20,001–50,000 | 21 |
| 50,001–100,000 | 25 |
| >100,001 | +1 per each 100,000 inhabitants or fraction +1 if total is an even number |
The mayor was indirectly elected by the plenary assembly. A legal clause required that mayoral candidates earned the vote of an absolute majority of councillors, or else the candidate of the most-voted party in the assembly was to be automatically appointed to the post. In the event of a tie, the appointee would be determined by lot.
The electoral law allowed for parties and federations registered in the interior ministry, coalitions and groupings of electors to present lists of candidates. Parties and federations intending to form a coalition ahead of an election were required to inform the relevant Electoral Commission within ten days of the election call, whereas groupings of electors needed to secure the signature of a determined amount of the electors registered in the municipality for which they were seeking election, disallowing electors from signing for more than one list of candidates. In the case of Madrid, as its population was over 1,000,001, at least 8,000 signatures were required.

## 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 poll. When available, seat projections determined by the polling organisations are displayed below (or in place of) the percentages in a smaller font; 28 seats were required for an absolute majority in the City Council of Madrid.
| Polling firm/Commissioner | Fieldwork date | Sample size | Turnout | | | | | | | | Lead |
| 1987 municipal election | 10 Jun 1987 | — | 70.1 | 40.5 24 | – | 6.1 3 | 15.1 8 | 33.8 20 | 0.2 0 | 1.5 0 | 6.7 |
| Gallup/Ya | 4 Jun 1987 | 2,477 | 74.1 | 38.6 22 | – | 7.7 4/5 | 15.7 9 | 33.6 19/20 | – | 2.7 0 | 5.0 |
| Sigma Dos/Diario 16 | 4 Jun 1987 | ? | ? | ? 26/29 | – | ? 5 | ? 6/7 | ? 17/19 | – | – | ? |
| DYM/Cambio 16 | 4 Jun 1987 | ? | ? | ? 28 | – | ? 6 | ? 8 | ? 13 | – | – | ? |
| Demoscopia/El País | 22–26 May 1987 | ? | 73 | 38.2 22 | – | 8.5 4 | 19.2 11 | 31.0 18 | 1.1 0 | – | 7.2 |
| CIS | 8–16 May 1987 | 1,593 | ? | 47.9 29 | – | 5.5 3 | 12.2 7 | 26.3 16 | – | – | 21.6 |
| 1986 general election | 22 Jun 1986 | — | 73.4 | 37.3 (22) | 36.0 (22) | 5.7 (3) | 13.7 (8) | | | 2.3 (0) | 1.3 |
| 1983 municipal election | 8 May 1983 | — | 70.8 | 48.4 30 | 37.8 23 | 6.8 4 | 3.0 0 | | | – | 10.6 |

## Results

← Summary of the 10 June 1987 City Council of Madrid election results → :
| Parties and alliances | Parties and alliances | Popular vote | Popular vote | Popular vote | Seats | Seats |
| Parties and alliances | Parties and alliances | Votes | % | ±pp | Total | +/− |
| | Spanish Socialist Workers' Party (PSOE) | 666,199 | 40.47 | –7.97 | 24 | –6 |
| | People's Alliance (AP)$^1$ | 555,599 | 33.76 | –4.06 | 20 | –3 |
| | Democratic and Social Centre (CDS) | 247,773 | 15.05 | +12.00 | 8 | +8 |
| | United Left (IU)$^2$ | 100,514 | 6.11 | –0.67 | 3 | –1 |
| | Workers' Party of Spain–Communist Unity (PTE–UC) | 25,059 | 1.52 | New | 0 | ±0 |
| | The Greens (LV) | 11,129 | 0.68 | New | 0 | ±0 |
| | Confederation of the Greens (CV) | 4,858 | 0.30 | New | 0 | ±0 |
| | Spanish Phalanx of the CNSO (FE–JONS) | 4,592 | 0.28 | New | 0 | ±0 |
| | People's Democratic Party (PDP) | 3,727 | 0.23 | New | 0 | ±0 |
| | Humanist Platform (PH) | 2,475 | 0.15 | New | 0 | ±0 |
| | Spanish Juntas (JJEE) | 2,362 | 0.14 | New | 0 | ±0 |
| | Republican Popular Unity (UPR)$^3$ | 1,248 | 0.08 | +0.03 | 0 | ±0 |
| | Revolutionary Workers' Party of Spain (PORE) | 1,219 | 0.07 | New | 0 | ±0 |
| | Communist Workers' League (LOC) | 1,164 | 0.07 | New | 0 | ±0 |
| | Internationalist Socialist Workers' Party (POSI) | 1,083 | 0.07 | New | 0 | ±0 |
| Blank ballots | Blank ballots | 16,972 | 1.03 | +0.59 | | |
| Total | Total | 1,645,973 | | | 55 | –2 |
| Valid votes | Valid votes | 1,645,973 | 98.88 | –0.15 | | |
| Invalid votes | Invalid votes | 18,607 | 1.12 | +0.15 | | |
| Votes cast / turnout | Votes cast / turnout | 1,664,580 | 70.06 | –0.72 | | |
| Abstentions | Abstentions | 711,430 | 29.94 | +0.72 | | |
| Registered voters | Registered voters | 2,376,010 | | | | |
| Sources |||||||
| Footnotes: $^1$ People's Alliance results are compared to People's Coalition totals in the 1983 election.$^2$ United Left results are compared to Communist Party of Spain totals in the 1983 election.$^3$ Republican Popular Unity results are compared to Popular Struggle Coalition totals in the 1983 election. |||||||
Popular vote
PSOE
40.47%
AP
33.76%
CDS
15.05%
IU
6.11%
PTE–UC
1.52%
Others
2.06%
Blank ballots
1.03% :
Seats
PSOE
43.64%
AP
36.36%
CDS
14.55%
IU
5.45% :