Generated by GPT-5-mini| City of Madrid | |
|---|---|
![]() | |
| Name | Madrid |
| Native name | Madrid |
| Country | Spain |
| Autonomous community | Community of Madrid |
| Comarca | Madrid (comarca) |
| Founded | 9th century (Muslim settlement) |
| Area total km2 | 604.3 |
| Population total | 3,223,334 (2021) |
| Population density km2 | auto |
| Elevation m | 667 |
| Timezone | CET |
| Postal code | 28001–28080 |
City of Madrid is the capital and largest municipality of Spain, serving as the political, cultural, and financial center of the Community of Madrid and the wider Iberian Peninsula. As a primate city with roots in a 9th-century Umayyad Caliphate outpost, Madrid evolved through the Reconquista, the establishment of the Spanish Monarchy under the House of Habsburg, and modern transformations tied to the Second Spanish Republic, the Spanish Civil War, and the democratic transition after Francoist Spain.
Madrid's origin traces to a fortified settlement built during the period of the Umayyad Caliphate with later prominence under the Nasrid Kingdom of Granada and the Taifa of Toledo. In 1561, Philip II of Spain transferred the royal court from Toledo to Madrid, which catalyzed expansion alongside the Habsburg Spain court and the construction of Royal Palace of Madrid and royal institutions. The city endured sieges during the Peninsular War, including occupation by forces of Napoleon Bonaparte and resistance epitomized at the Dos de Mayo Uprising. 19th-century events such as the Spanish Constitution of 1812, the return of the Bourbon Restoration (Spain), and urban projects under mayors influenced growth. Twentieth-century Madrid featured key episodes in the Spanish Civil War with the Siege of Madrid, later reconstruction during Francoist Spain, and political reforms culminating in the 1978 Spanish Constitution and accession to the European Union.
Madrid lies on the Meseta Central plateau at an elevation of approximately 667 meters, intersecting the Manzanares River corridor and proximate to the Sierra de Guadarrama mountain range. Its boundaries encompass parish-like districts and municipalities including Chamartín, Retiro, Tetuán, and Barajas. The city experiences a Mediterranean climate with continental influences, registering hot summers and cool winters; climate records feature extremes recorded at the AEMET stations and impacts linked to regional droughts and heatwaves studied by the IPCC and European Environment Agency.
Madrid functions as the seat of national institutions including the Cortes Generales, the Moncloa Palace, and several ministries such as the Ministry of Foreign Affairs (Spain). Municipal authority rests with the City Council of Madrid and the Mayor of Madrid office, operating within frameworks set by the Statute of Autonomy of the Community of Madrid and interactions with the Community of Madrid regional government headquartered in Palacio de la Puerta del Sol. Judicial institutions in the city include the Audiencia Nacional and the Supreme Court of Spain, while EU representations and consulates for states like United States, France, Germany (Federal Republic of Germany), and China maintain diplomatic presence.
The municipality hosts a diverse population shaped by migration from across Spain and international inflows from Latin America, Morocco, Philippines, United Kingdom, Romania, and China. Demographic trends include suburbanization to municipalities like Alcalá de Henares and Getafe and commuting patterns serviced by the Madrid Metropolitan Area. Population studies reference national censuses by INE and urban analyses by the OECD and Eurostat, noting age structure shifts, fertility rates, and international student communities linked to universities such as Complutense University of Madrid, Autonomous University of Madrid, and Carlos III University of Madrid.
Madrid is an economic hub hosting the Bolsa de Madrid, headquarters for corporations including Banco Santander, Telefónica, Iberia (airline), and multinational offices for BBVA and Repsol. The service sector dominates with finance, professional services, tourism anchored by museums like the Museo Nacional del Prado and Museo Nacional Centro de Arte Reina Sofía, and events at venues such as IFEMA. Infrastructure nodes include Adolfo Suárez Madrid–Barajas Airport, high-speed rail at Madrid Atocha railway station connected to AVE networks, and logistics centers serving the Port of Valencia and European corridors tied to TEN-T. Energy, utilities, and digital services coordinate with entities like Red Eléctrica de España and telecom networks run by Orange España and Vodafone Spain.
Madrid's cultural scene spans institutions such as the Museo Nacional del Prado, the Reina Sofía, and the Thyssen-Bornemisza Museum, theatrical tradition at venues like the Teatro Real and Teatro Español, and festivals including San Isidro (festivity) and New Year celebrations at Puerta del Sol. Architectural landmarks range from the Royal Palace of Madrid and Plaza Mayor to modern interventions like Cuatro Torres Business Area and parks such as Parque del Buen Retiro. Culinary heritage features cocido madrileño served in historic markets like Mercado de San Miguel, while literary associations connect to figures tied to Lope de Vega, Miguel de Cervantes, and the Generation of '27.
Madrid's transport network integrates the Madrid Metro—one of the largest systems globally—the Cercanías Madrid commuter rail, and an expanding bus fleet operated by the EMT Madrid. Major road arteries include the M-30, M-40, M-45, and A-1 corridor linking to cities like Valladolid and Burgos. Urban regeneration projects have repurposed areas such as Manzanares Park and the Madrid Río initiative, while large-scale planning involves stakeholders like the Ministry of Transport, Mobility and Urban Agenda (Spain), municipal planners, and private developers including SAREB and investment funds. Recent initiatives focus on green mobility, cycling networks promoted by groups including BiciMad, and preparations for international events hosted in venues such as Wanda Metropolitano and Santiago Bernabéu Stadium.