Madrid — Capital of Spain
Madrid's rise to capital status is unusual among major European capitals for having a specific, datable royal decision behind it rather than centuries of organic growth as a trading or religious center: in 1561, King Philip II moved the Spanish royal court from Toledo to Madrid, then a comparatively minor fortified town, largely for its central location within the Iberian peninsula and its distance from any coastline that might expose the court to naval attack. The decision was administrative rather than symbolic, and Madrid has remained the seat of Spanish government continuously ever since, aside from brief interruptions.
Before Philip II's court arrived, the town had existed since at least the 9th century as a Muslim-built fortress called Mayrit, constructed under the Emirate of Córdoba to guard the northern approach to Toledo; the name Madrid descends from that Arabic-influenced original, and the old Muslim quarter's layout is still traceable in the tangled street pattern of the modern city's historic La Latina district, distinct from the wide planned boulevards built centuries later.
The Royal Palace of Madrid, the largest royal palace in Europe by floor area, was built after a fire destroyed the previous Habsburg-era Alcázar fortress in 1734, with construction running from 1738 to 1755 under the Bourbon dynasty that had replaced the Habsburgs on the Spanish throne earlier that century; despite its scale, no Spanish monarch has used it as a full-time residence since the 1930s, and it now serves mainly for state ceremonies while the royal family lives elsewhere in Madrid.
Madrid briefly lost its capital status during the Spanish Civil War, when the Republican government relocated first to Valencia in November 1936 as Nationalist forces besieged Madrid, and the city endured one of the war's longest sieges — nearly three years of intermittent fighting and bombardment — before falling to Franco's forces in March 1939, after which Madrid resumed its role as capital under the ensuing four-decade dictatorship.
The Prado Museum, opened to the public in 1819 and built around the extensive royal art collection assembled by the Spanish Habsburg and Bourbon monarchs over more than two centuries, anchors what is now called Madrid's 'Golden Triangle of Art' alongside the Thyssen-Bornemisza and Reina Sofía museums — a concentration of major art institutions within walking distance of one another that is unusual even among large European capitals.
Today Madrid functions as Spain's political and financial center and its largest city, seat of the Spanish parliament (the Cortes Generales) and the country's stock exchange, with a metropolitan population that has made it one of the largest urban areas in the European Union — though it shares cultural and economic prominence within Spain with Barcelona in ways that fewer other European capitals need to negotiate with a domestic rival city of comparable global recognition.
El Retiro Park, originally laid out in the 17th century as private grounds attached to a royal palace complex that has since largely disappeared, was opened to the public in stages during the 19th century and remains Madrid's principal green space, its Crystal Palace glasshouse (built in 1887) now used for contemporary art exhibitions rather than the botanical displays it was originally constructed to house.
Quick facts
- Madrid's metropolitan population is roughly 6.8 million as of 2024, making it the largest urban area in Spain and among the largest in the European Union.
- At about 650 meters above sea level, Madrid is one of the highest-altitude capital cities in Europe, a legacy of Philip II's original choice of a defensible, centrally located inland site.
- The Puerta del Sol square, at the geographic and symbolic center of the city, contains the kilometer-zero marker from which all of Spain's radial road distances are officially measured.
- Madrid hosted the 1992 world's fair alongside Seville's Expo '92 and Barcelona's Olympics that same year, part of a coordinated national push to project a modernized, post-Franco Spain internationally.
- The Gran Vía, Madrid's major commercial thoroughfare, was carved through the dense old city center beginning in 1910 and took over two decades to fully complete, reshaping the city's downtown skyline with early-20th-century architecture.