After the death of Franco and the establishment of democratic rule, the 1978 constitution confirms Spain's capital Madrid. In 1979, the first municipal elections bring democracy to Madrid's first democratically elected mayor since the Second Republic. The years of transition and political upheaval in the country make the Madrid scene of some of the most important events of the period, as the mass demonstrations of support for democracy after the foiled coup on February 23, 1981. The first democratic mayors belong to the leftist parties (Enrique Tierno Galván, Juan Barranco), tacking the city after more conservative positions (Agustín Rodríguez Sahagún, José María Álvarez del Manzano and Alberto Ruiz-Gallardon).
The democratic election of mayors definitely brings great benefits to the city, they be required to improve the quality of life of citizens, first responders (Franco mayors were elected directly by Franco). Thus began the construction of libraries, sports facilities and health centers, the elimination of shanty areas, cleaning of the Manzanares River, improving the road, the closing of the M-30 to the north and subsequent burial in the zone Manzanares, construction of new bypass roads (M-40, M-45, M-50), while increasing the capacity of access roads (freeways or duplicate converted to toll road) or the regulation of parking within the city, with neighborhood protests in some cases, reaches the limit of the M-30, all with the purpose of absorbing and regulating the growing traffic.