All City Council members were elected in a single multi-member district, consisting of the Madrid municipality, using the D'Hondt method and a closed-list proportional representation system.
The Spanish municipal electoral law established a clause stating that, if no candidate was to gather an absolute majority of votes to be elected as mayor of a municipality, the candidate of the most-voted party would be automatically elected to the post [REF].