Local elections were held in Spain on 10 June 1987 to elect all 65,577 councillors in the 8,062 Spanish municipalities, all 1,181 provincial seats in 41 provinces (including 38 indirectly-elected provincial deputations and the three foral deputations in the Basque Country) and 196 seats in ten island councils (seven Canarian and three Balearic ones). They were held concurrently with regional elections in thirteen autonomous communities, as well as the 1987 European Parliament election.

Overview Local government

Under the 1978 Constitution, the governance of municipalities in Spain was centered on the figure of city councils (), local corporations with independent legal personality composed of a mayor, a government council and an elected legislative assembly.; . The mayor was indirectly elected by the local assembly, requiring an absolute majority; otherwise, the candidate from the most-voted party automatically became mayor (ties were resolved by drawing lots).; . The concejo abierto system (), under which voters directly elected the local mayor by plurality voting, was reserved for municipalities under 100 inhabitants and some minor local entities.; .

Provincial deputations were the governing bodies of provinces in Spain—except for single-province autonomous communities—having an administration role of municipal activities and composed of a provincial president, an administrative body, and a plenary.; . For insular provinces, such as the Balearic and Canary Islands, deputations were replaced by island councils in each of the islands or group of islands. For Gran Canaria, Tenerife, Fuerteventura, La Gomera, El Hierro, Lanzarote and La Palma, this figure was referred to in Spanish as cabildo insular, whereas for Mallorca, Menorca and Ibiza–Formentera, its name was consejo insular ().; . The three Basque provinces had foral deputations instead (called General Assemblies, or Juntas Generales).; ; .

Date The term of local assemblies in Spain expired four years after the date of their previous election. The election decree was required to be issued no later than 25 days prior to the scheduled expiration date of the assemblies and published on the following day in the Official State Gazette (BOE), with election day taking place between 54 and 60 days after the decree's publication.. The previous local elections were held on 8 May 1983, which meant that the chambers' terms would have expired on 8 May 1987. The election decree was required to be published in the BOE no later than 14 April 1987, setting the latest possible date for election day on 13 June 1987.

Local assemblies could not be dissolved before the expiration of their term, except in cases of mismanagement that seriously harmed the public interest and implied a breach of constitutional obligations, in which case the Council of Ministers could—optionally—decide to call a by-election.; .

Elections to the assemblies of local entities were officially called on 14 April 1987 with the publication of the corresponding decree in the BOE, setting election day for 10 June.. Subsequent by-elections were called on 15 September, for 8 November.

Electoral system Voting for local assemblies and Canarian island councils was based on universal suffrage, comprising all Spanish nationals over 18 years of age, registered and residing in the municipality or council and with full political rights (provided that they had not been deprived of the right to vote by a final sentence, nor were legally incapacitated), as well as resident non-nationals whose country of origin allowed reciprocal voting by virtue of a treaty.; ; .

Local councillors were elected using the D'Hondt method and closed-list proportional voting, with a five percent-threshold of valid votes (including blank ballots) in each constituency.. Each municipality or council was a multi-member constituency, with a number of seats based on the following scale:.

Population Councillors Municipalities Canary Islands Balearic Islands <250 5 No island below 5,000inhabitants Fixed number:Ibiza–Formentera: 13Menorca: 13Mallorca: 33 251–1,000 7 1,001–2,000 9 2,001–5,000 11 5,001–10,000 13 11 10,001–20,000 17 13 20,001–50,000 21 17 50,001–100,000 25 21 >100,001 +1 per each 100,000 inhabitants or fraction+1 if total is an even number

Councillors in municipalities between 100 and 250 inhabitants were elected using open-list partial block voting, with voters choosing up to four candidates..

Most provincial deputations were indirectly elected by applying the D'Hondt method and a three percent-threshold of valid votes to municipal results—excluding candidacies not electing any councillor—in each judicial district. Seats were allocated to provincial deputations based on the following scale (with each judicial district being assigned an initial minimum of one seat and a maximum of three-fifths of the total number of provincial seats, with the remaining ones distributed in proportion to population):.

Population Seats <500,000 25 500,001–1,000,000 27 1,000,001–3,500,000 31 >3,500,001 51

The General Assemblies of Álava, Biscay and Gipuzkoa were directly elected by voters under their own, specific electoral regulations..

The law did not provide for by-elections to fill vacant seats; instead, any vacancies arising after the proclamation of candidates and during the legislative term were filled by the next candidates on the party lists or, when required, by designated substitutes..

Parties and candidates The electoral law allowed for parties and federations registered in the interior ministry, alliances and groupings of electors to present lists of candidates. Parties and federations intending to form an alliance were required to inform the relevant electoral commission within 10 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 sought election, disallowing electors from signing for more than one list:.

At least one percent of the electors in municipalities with a population below 5,000 inhabitants, provided that the number of signers was more than double that of councillors at stake. At least 100 signatures in municipalities with a population between 5,001 and 10,000. At least 500 signatures in municipalities with a population between 10,001 and 50,000. At least 1,500 signatures in municipalities with a population between 50,001 and 150,000. At least 3,000 signatures in municipalities with a population between 150,001 and 300,000. At least 5,000 signatures in municipalities with a population between 300,001 and 1,000,000. At least 8,000 signatures in municipalities with a population over 1,000,001.

Results Municipal Overall + ← Summary of the 10 June 1987 Spanish municipal election results → Parties and alliances Popular vote Councillors Votes % ±pp Total +/− Spanish Socialist Workers' Party (PSOE) 7,229,782 37.08 −4.79 23,241 −488 People's Alliance (AP)1 4,080,705 20.93 −4.80 16,581 −4,495 Democratic and Social Centre (CDS)2 1,904,984 9.77 +7.98 5,972 +5,288 United Left (IU)3 1,564,964 8.03 −0.50 2,641 +40 Convergence and Union (CiU) 1,004,823 5.15 +1.09 4,373 +1,044 People's Democratic Party (PDP) 319,519 1.64 +0.74 1,521 +649 People's Democratic Party (PDP) 171,083 0.88 New 914 +914 Galician Progressive Coalition (PDP–PL–CG)4 148,436 0.76 −0.21 607 −304 Basque Nationalist Party (EAJ/PNV) 241,832 1.24 −0.93 819 −503 Popular Unity (HB) 239,010 1.23 +0.39 669 +284 Andalusian Party (PA) 221,825 1.14 +0.55 294 +148 Basque Solidarity (EA) 207,054 1.06 New 497 +497 Workers' Party of Spain–Communist Unity (PTE–UC) 185,104 0.95 New 179 +179 Valencian Union (UV) 148,878 0.76 New 215 +215 Canarian Independent Groups (AIC) 140,469 0.72 +0.34 243 +120 Tenerife Group of Independents (ATI) 119,943 0.62 +0.27 173 +88 La Palma Group of Independents (API) 11,356 0.06 +0.05 46 +37 Insular Group of Gran Canaria (AIGRANC) 4,557 0.02 New 2 +2 Lanzarote Independents Group (AIL) 2,713 0.01 ±0.00 16 +4 Independents of Fuerteventura (IF) 1,900 0.01 ±0.00 6 −11 Regionalist Aragonese Party (PAR) 129,370 0.66 +0.10 896 −224 Basque Country Left (EE) 107,354 0.55 +0.14 157 +36 Republican Left of Catalonia (ERC) 75,422 0.39 −0.06 188 +33 Independent Solution (SI) 72,661 0.37 New 129 +129 Galician Nationalist Bloc (BNG) 61,256 0.31 +0.04 139 +21 Galician Socialist Party–Galician Left (PSG–EG)5 57,062 0.29 +0.19 60 +38 Navarrese People's Union (UPN) 43,818 0.22 +0.04 134 +55 Canarian Assembly–Canarian Nationalist Left (AC–INC)6 41,390 0.21 −0.03 40 −11 Independents of Galicia (IG) 33,032 0.17 New 69 +69 Majorcan Union (UM) 32,218 0.17 −0.03 119 −21 Humanist Platform (PH–FV) 28,489 0.15 New 0 ±0 Regionalist Party of Cantabria (PRC) 28,227 0.14 +0.07 100 +37 Cantonal Party (PCAN) 26,343 0.14 +0.07 10 +5 Independents of León (IL) 26,108 0.13 ±0.00 12 +1 Liberal Party (PL) 22,416 0.11 New 62 +62 The Greens (LV) 20,470 0.10 New 2 +2 Spanish Phalanx of the CNSO (FE–JONS) 18,920 0.10 +0.06 6 −7 United Extremadura (EU) 18,483 0.09 −0.03 112 −90 Galician Nationalist Party (PNG) 18,354 0.09 New 38 +38 Independent Group of Ciudad Real (AICR) 12,513 0.06 New 14 +14 Municipal Progress of Osona (PMO) 11,877 0.06 New 48 +48 Socialist Party of Mallorca–Nationalist Left (PSM–EN)7 11,674 0.06 ±0.00 25 −7 Confederation of the Greens (CV) 11,385 0.06 New 1 +1 Valencian Independent Organization (OIV) 11,385 0.06 −0.03 25 −38 Centre Canarian Union (UCC) 9,834 0.05 New 4 +4 Nationalist and Progressive Independent Groups (AIPN) 9,629 0.05 New 132 +132 Valencian Electoral Coalition (CEV) 9,352 0.05 New 17 +17 Majorera Assembly (AM) 5,336 0.03 ±0.00 23 −6 Free Independents (IL) 2,674 0.01 −0.01 4 −2 Independent Herrenian Group (AHI) 1,441 0.01 New 9 +9 Others (lists at <0.05% not securing any provincial or island seat) 830,682 4.26 — 5,757 −5,019 Blank ballots 217,300 1.11 +0.66 Total 19,495,424 100.00 65,577 −1,735 Valid votes 19,495,424 98.74 −1.15 Invalid votes 248,910 1.26 +1.15 Votes cast / turnout 19,744,334 69.42 +0.82 Abstentions 8,698,014 30.58 −0.82 Registered voters 28,442,348 Sources

City control The following table lists party control in provincial capitals (highlighted in bold), as well as in municipalities above 75,000. Gains for a party are highlighted in that party's colour.