page_title: History of Madrid
section_title: Contemporary Madrid
hierarchical_section_title: History of Madrid / Contemporary Madrid
caption_attribution_description: English: Puerta del Sol in Madrid during the 2011 Spanish protests
context_page_description: The documented history of Madrid dates to the 9th century, even though the area has been inhabited since the Stone Age. The development of Madrid as administrative centre began when Philip II set his court there in the 1560s. Madrid has been the country's capital continuously since 1606.
context_section_description: Benefiting from prosperity in the 1980s, Spain's capital city has consolidated its position as the leading economic, cultural, industrial, educational and technological center of the Iberian peninsula. The relative decline in population since 1975 reverted in the 1990s, with the city recovering a population of roughly 3 million inhabitants by the end of the 20th century.
  Since the late 1970s and through the 1980s Madrid became the center of the cultural movement known as la Movida. Conversely, just like in the rest of the country, an heroin crisis took a toll in the poor neighborhoods of Madrid in the 1980s.
  
  During the mandate as Mayor of José María Álvarez del Manzano construction of traffic tunnels below the city proliferated. 
  On 11 March 2004, three days before Spain's general elections and exactly 2 years and 6 months after the September 11 attacks in the US, Madrid was hit by a terrorist attack when Islamic terrorists belonging to an al-Qaeda-inspired terrorist cell placed a series of bombs on several trains during the morning rush hour, killing 191 people and injuring 1,800.
  The administrations that followed Álvarez del Manzano's, also conservative, led by Alberto Ruiz-Gallardón and Ana Botella, launched three unsuccessful bids for the 2012, 2016 and 2020 Summer Olympics. Madrid was a centre of the anti-austerity protests that erupted in Spain in 2011. As consequence of the spillover of the 2008 financial and mortgage crisis, Madrid has been affected by the increasing number of second-hand homes held by banks and house evictions. The mandate of left-wing Mayor Manuela Carmena (2015–2019) delivered the renaturalization of the course of the Manzanares across the city.
  Since the late 2010s, the challenges the city faces include the increasingly unaffordable rental prices (often in parallel with the gentrification and the spike of tourist apartments in the city centre) and the profusion of betting shops in working-class areas, equalled to an "epidemics" among the young people.
caption: 2011 Anti-austerity protests in the Puerta del Sol
exif: {"Image ImageWidth": "577", "Image ImageLength": "384", "Image BitsPerSample": "[8, 8, 8]", "Image PhotometricInterpretation": "2", "Image Orientation": "Horizontal (normal)", "Image SamplesPerPixel": "3", "Image XResolution": "72", "Image YResolution": "72", "Image ResolutionUnit": "Pixels/Inch", "Image Software": "Adobe Photoshop CS5 Macintosh", "Image DateTime": "2011:06:23 19:20:45", "Image ExifOffset": "232", "Thumbnail Compression": "JPEG (old-style)", "Thumbnail XResolution": "72", "Thumbnail YResolution": "72", "Thumbnail ResolutionUnit": "Pixels/Inch", "Thumbnail JPEGInterchangeFormat": "446", "Thumbnail JPEGInterchangeFormatLength": "10574", "EXIF ExifVersion": "0221", "EXIF DateTimeOriginal": "2011:05:23 13:24:01", "EXIF DateTimeDigitized": "2011:05:23 13:24:01", "EXIF ColorSpace": "sRGB", "EXIF ExifImageWidth": "577", "EXIF ExifImageLength": "384"}