1987 Madrid City Council election

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.

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.

[1][2] 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.

[1][2] Councillors were allocated to municipal councils based on the following scale: The mayor was indirectly elected by the plenary assembly.

The highest percentage figure in each polling survey is displayed with its background shaded in the leading party's colour.