Open Travel Guide
History of Madrid

Madrid History & Heritage Guide 2026

The history of Madrid told through its places: sites worth the detour and the context they need.

Madrid is Spain's vibrant capital and largest city, a metropolis of world-class art museums, grand boulevards, lively plazas, and an electric nightlife that never sleeps. As the Autonomous Community of Madrid, the region combines the cosmopolitan energy of the city with green sierra mountains, historic royal towns, and charming villages within easy reach.

The area now known as Madrid has been inhabited since the Stone Age, but its transformation into a major city began with the Moorish fortress of Magerit, built around the 9th century CE on the site now occupied by the Royal Palace. The city was reconquered by Alfonso VI of Castile in 1083. Philip II made Madrid the permanent capital of the Spanish Empire in 1561, transforming it into a cosmopolitan centre of power at the height of Spain's Golden Age. The 18th and 19th centuries brought Bourbon dynasty patronage, the construction of the Prado Museum (1819), and eventual upheaval in the Peninsular War (1808–1814). The 20th century saw Madrid at the centre of the Spanish Civil War (1936–1939) and the subsequent Franco dictatorship; the city's cultural rebirth after Franco's death in 1975 — 'la movida' — defined modern Madrid.

Historical timeline

Key moments that shaped Madrid.

  1. 1

    Before 9th century CE

  2. 2

    9th–11th century

  3. 3

    1083

  4. 4

    1561

  5. 5

    1561–1680

  6. 6

    1700–1808

  7. 7

    1808–1814

  8. 8

    1830–1900

  9. 9

    1936–1939

  10. 10

    1939–1975

  11. 11

    1975–present

Historical eras

The chapters of Madrid's past.

Historical sites

Places where Madrid's past comes alive.

Museums

Curated collections that tell Madrid's story.

Museum

Museo del Prado

Museum

Museo Reina Sofía

Museum

Museo Arqueológico Nacional

Museum

Museo Naval

Historical tours

Guided experiences that bring history to life.

Tour

Items tours