Madrid - The Capital of Spain

Population
6,642,000
Language
Spanish
Continent
Europe
Since
1561
Eco Ranking
22/195

Source: Environmental Performance Index 2024.

About Madrid

Madrid became the capital of Spain in 1561 when King Philip II permanently established the royal court there, choosing a geographically central location on the Castilian plateau. Before this decision, the Spanish court had moved between Toledo, Valladolid, Burgos, and other cities. Madrid had no prior significance as a major city or ecclesiastical center, its elevation to capital was an administrative decision, not a reflection of existing importance. Philip II's choice of Madrid made it the only European capital created essentially by royal decree without prior urban prominence. The city became the seat of the Spanish Empire at its height, overseeing territories across Europe, the Americas, Africa, and Asia. Spain's 20th-century history was defined by the Civil War (1936-1939), in which Madrid was a Republican stronghold that withstood a three-year siege before falling to Francisco Franco's Nationalist forces. Franco's dictatorship (1939-1975) was headquartered in Madrid, centralizing power and suppressing regional languages and identities. Following Franco's death, Spain transitioned to a constitutional monarchy and parliamentary democracy. Today Madrid is the seat of the Cortes Generales (parliament), the government, and the royal palace. Spain has one of the most decentralized governmental structures in Europe through its system of 17 autonomous communities.

About Spain

Spain is a constitutional monarchy with a parliamentary system and seventeen autonomous communities, each with its own government and legislature. The 1978 constitution established the current democratic framework following Franco's death in 1975. Spain is a member of the EU and NATO. The country has faced significant territorial tensions, particularly regarding Catalan independence; a 2017 independence referendum in Catalonia was declared illegal by the Spanish government and Constitutional Court. Spain is the fourth-largest economy in the eurozone.

View Madrid on the map

View Madrid - The Capital of Spain on the map

Flight time from Madrid to other capitals

CityDistance (km)Flight Time
Paris11001h 18m
London13001h 32m
Rome14001h 39m
Abu Dhabi56006h 35m
Washington, D.C.61007h 11m
Cape Town860010h 7m
Buenos Aires1000011h 46m
Tokyo1080012h 42m
Singapore1140013h 25m
Canberra1760020h 42m

Capitals with similar population to Madrid

CityPopulation
Riyadh7,676,654
Baghdad7,216,040
Bogotá7,181,469
Madrid6,642,000
Singapore5,685,807
Ankara5,639,076
Santiago5,614,000

Capitals with similar eco ranking to Madrid

CityEco Rank
Reykjavik19
Warsaw20
Vilnius21
Madrid22
Canberra23
Ljubljana24
Zagreb25

Source: Environmental Performance Index 2024.

Frequently Asked Questions

  • Why did Philip II choose Madrid as the capital of Spain?

    Philip II moved the royal court permanently to Madrid in 1561, primarily because of its central geographic position on the Iberian Peninsula, which he believed would allow more effective administration of the sprawling Spanish kingdoms. The site was also a royal hunting ground with an existing small royal residence. Madrid had no prior status as a major city, cathedral city, or commercial center.

  • When did Madrid become the capital of Spain?

    Madrid became the permanent capital of Spain in 1561 when Philip II established the royal court there. It briefly lost that status from 1601 to 1606, when Philip III moved the court to Valladolid, before it was returned to Madrid definitively in 1606.

  • What was Madrid's role in the Spanish Civil War?

    Madrid was the seat of the Spanish Republican government and a key military objective for Franco's Nationalist forces. The city withstood a prolonged siege from November 1936 until March 1939, nearly the full duration of the Civil War. The defense of Madrid, including the Battle of Jarama and the defense of the University City, became symbolic of Republican resistance. The city finally fell on 28 March 1939.

  • Is Madrid the largest city in Spain?

    Yes, Madrid is the largest city in Spain, with approximately 3.3 million residents in the city proper and over 6.6 million in the wider metropolitan area. It is followed by Barcelona, which has a comparable metropolitan area population and serves as the capital of Catalonia.

  • How does Spain's autonomous community system affect Madrid's role as capital?

    Spain's 17 autonomous communities each have their own elected parliaments and governments with authority over education, health, policing, and other domains. Madrid is both the national capital and the capital of the Autonomous Community of Madrid. The tension between central authority in Madrid and the demands of regions such as Catalonia and the Basque Country has been one of the defining political conflicts of post-Franco Spain.

Sights and landmarks

The Prado holds one of the world's most important collections of European painting, with masterpieces by Velázquez (Las Meninas), Goya (The Third of May 1808) and Bosch (The Garden of Earthly Delights). The nearby Reina Sofía houses Picasso's Guernica from 1937. The Thyssen-Bornemisza forms, together with the two above, the Golden Triangle of Madrid's museum quarter. The 17th-century Plaza Mayor, built under Philip III, was the stage for bullfights and autos-da-fé. The Royal Palace from 1764, with 3,418 rooms, is officially the largest functional royal palace in Europe, though the king has lived in the Zarzuela Palace since 1962. The Retiro Park and the Crystal Palace are popular for weekend walks.

Climate and best time to visit

Madrid has a Mediterranean climate with continental influences (Csa–Bsk transition zone) due to its location at 667 metres on the Castilian plateau. It is one of Europe's driest capitals, with only 440 millimetres of rain per year. July is hot and dry with temperatures between 18 and 33 degrees Celsius and regularly above 40 degrees during heat waves. January sits between 2 and 11 degrees; frost occurs at night but the sun shines almost every day. Madrid counts around 2,770 hours of sunshine per year. The best time to visit runs from April to June and September to November; August leaves much of Madrid empty due to the heat and holiday season.

Culture and customs

Madrid lives on a schedule outside the average European rhythm: lunch (la comida) starts around 14:30 and dinner is rarely before 21:30. The nightlife is world-famous and continues well past sunrise in neighbourhoods such as Malasaña, Chueca and La Latina. The tapas culture varies by region, but in Madrid a free bite with a drink is still common in traditional bars. Bullfighting at Las Ventas (summer season) remains culturally charged and legally protected despite declining public support. Real Madrid, with 15 Champions League titles through 2024, and Atlético Madrid dominate the sporting culture. Religiously the capital is predominantly Catholic, with notable processions during Holy Week.
Madrid, capital of Spain
Madrid, capital of Spain

Capitals quiz

Test how many of the 195 national capitals you can name, by continent or worldwide.

Start quiz
What is the capital of New Zealand?