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.

The short answer: start with Royal Palace of Madrid (Palacio Real), Plaza Mayor and Puerta del Sol. This guide profiles 10+ historical sites in Madrid, with prices, timing, and the practical notes that decide whether each one earns a place in your plan.

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.

Madrid's history stretches from a small 9th-century Muslim fortress (Mayrit) built to guard Toledo, through its dramatic elevation to capital of the Spanish Empire by Philip II in 1561, to its role as the heart of a global empire spanning the Americas, Asia, and Africa. The city witnessed the horrors of the Napoleonic invasion, the turbulent 19th-century liberal reforms, the devastating Spanish Civil War (1936–39), and the creative explosion of post-Franco democracy — La Movida Madrileña — that transformed it into one of Europe's most vibrant cities.

Historical timeline

Key moments that shaped Madrid.

  1. 1

    Founding of Mayrit

    852 AD

    Muhammad I of Córdoba orders the construction of a small fortress (hisn) called Mayrit on the Manzanares River to guard the northern approaches to Toledo. This is the origin of modern Madrid.

  2. 2

    Christian Reconquest

    1083

    King Alfonso VI of Castile captures Mayrit as part of the Reconquista, absorbing the Muslim fortress town into the Christian kingdom and beginning the transformation of the settlement

  3. 3

    First Cortes in Madrid

    1309

    King Ferdinand IV of Castile convenes the first Cortes (parliament) in Madrid, signalling the town's growing political importance within the Castilian kingdom

  4. 4

    Marriage of the Catholic Monarchs

    1469

    The marriage of Isabella I of Castile and Ferdinand II of Aragon unites the two major Iberian kingdoms; Madrid becomes an increasingly important royal residence

  5. 5

    Year of Columbus

    1492

    The same year Columbus reaches the Americas, the Catholic Monarchs complete the Reconquista with the fall of Granada and expel Jews from Spain — beginning Spain's global imperial expansion

  6. 6

    Madrid Becomes Spain's Capital

    1561

    King Philip II moves the royal court permanently to Madrid, transforming the modest town of 30,000 into the administrative heart of the world's largest empire

  7. 7

    Plaza Mayor Completed

    1619

    The grand arcaded Plaza Mayor, designed by Juan Gómez de Mora, is completed under Philip III — it becomes the ceremonial centre of Habsburg Madrid

  8. 8

    Spanish Golden Age Peak

    1648

    Madrid at the height of the Spanish Golden Age — Velázquez painting at the royal court, Lope de Vega and Calderón de la Barca transforming world theatre, Quevedo writing satirical poetry in the bars of Huertas

  9. 9

    Bourbon Dynasty Established

    1714

    Following the War of Spanish Succession, Philip V (Bourbon) takes the throne; the French-influenced Bourbon court begins transforming Madrid with grand urban planning and architecture

  10. 10

    Royal Palace Completed

    1764

    The magnificent Palacio Real (Royal Palace) completed under Charles III — the largest royal palace in Western Europe, replacing the Habsburg Alcázar that burned in 1734

  11. 11

    May 2nd Uprising (Dos de Mayo)

    1808

    Madrid's citizens revolt against Napoleon's occupation on May 2nd 1808 — immortalised by Goya's masterpiece 'The Third of May 1808'. The uprising sparks the Peninsular War and is celebrated as the Community of Madrid's regional holiday

  12. 12

    Prado Museum Opens

    1819

    The Museo del Prado opens its doors, housing the Spanish royal art collection — it quickly becomes recognised as one of the world's greatest art museums

  13. 13

    Desamortización (Church Disentailment)

    1836

    Mendizábal's laws dissolve monasteries and sell church properties, fundamentally transforming Madrid's urban structure — many convents become public spaces or are demolished for new boulevards

  14. 14

    Spanish-American War & Loss of Empire

    1898

    Spain loses Cuba, Puerto Rico, and the Philippines to the USA, ending the last vestiges of its American empire and triggering a national crisis of identity (La Crisis de 98) that spurs artistic and intellectual renewal

  15. 15

    Gran Vía Begins

    1910

    Construction of the Gran Vía begins, requiring the demolition of 313 buildings — the ambitious boulevard transforms Madrid's skyline and urban character over the next three decades

  16. 16

    Spanish Civil War

    1936–1939

    Madrid becomes the most besieged capital in European history — Franco's Nationalist forces lay siege to the city for nearly three years; the city's Republican defenders inspire the world with 'No pasarán' (They shall not pass). The war ends with Franco's victory and 40 years of dictatorship

  17. 17

    Franco Dictatorship

    1939–1975

    Madrid under Francisco Franco's authoritarian regime — political repression, economic isolation, and cultural censorship mark the post-war decades, though the 1960s economic 'Spanish Miracle' brings urbanisation and growth

  18. 18

    Transition to Democracy (La Transición)

    1975–1982

    Following Franco's death in November 1975, King Juan Carlos I leads Spain's peaceful transition to democracy; the 1978 Constitution establishes a constitutional monarchy; Madrid becomes an Autonomous Community

  19. 19

    La Movida Madrileña

    Late 1970s–1980s

    A explosive cultural renaissance of rock music, avant-garde cinema, experimental art, and uninhibited nightlife floods post-Franco Madrid — Pedro Almodóvar, Mecano, and Alaska define this era of creative liberation

  20. 20

    Madrid Cultural Capital of Europe

    1992

    Madrid is designated European Capital of Culture — major investment in cultural infrastructure and the arts raises the city's international profile

  21. 21

    March 11 Train Bombings (11-M)

    2004

    Al-Qaeda coordinated train bombings kill 193 people at Atocha and other Madrid stations — Spain's deadliest terrorist attack. A memorial in the Atocha station forest commemorates the victims

  22. 22

    Prado and Retiro Listed as UNESCO Heritage

    2021

    The Paseo del Prado and Retiro Park are jointly inscribed as a UNESCO World Heritage Cultural Landscape, recognising their extraordinary cultural and artistic significance

Historical eras

The chapters of Madrid's past.

852–1083 AD

Muslim Period (Mayrit)

A small but strategically vital fortress town on the Manzanares River, part of the sophisticated Al-Andalus civilisation; the name 'Mayrit' derives from the Arabic 'Magerit' meaning 'water source'

1083–1516

Medieval Castilian Period

Gradual growth as a royal stopping point between the major Castilian cities; medieval churches and fortified walls define this period

1516–1700

Habsburg Golden Age

Madrid as capital of the world's largest empire — Philip II establishes the court in 1561; the Spanish Golden Age of art (Velázquez), literature (Cervantes, Lope de Vega), and architecture (Juan de Herrera) flourishes

1700–1808

Bourbon Enlightenment

French-influenced Bourbon kings transform Madrid with grand boulevards, the Royal Palace, and the Prado Museum; Charles III is known as 'the best mayor Madrid ever had'

1808–1931

Liberal Revolution & Modernisation

Napoleonic invasion and independence war; liberal revolutions and Carlist wars; late 19th-century industrialisation and urbanisation; the Gran Vía construction begins reshaping the city

1936–1975

Civil War & Franco Era

Madrid resists Franco's forces for three years of brutal siege; post-war poverty and repression followed by the economic boom of the 1960s; mass rural immigration transforms the city's demographics

1975–present

Democratic Spain & La Movida

The most transformative period in modern Madrid — democratic transition, explosion of cultural freedom (La Movida), rapid modernisation, EU membership (1986), 2004 terror attack, and emergence as one of Europe's most dynamic cultural capitals

Historical sites

Places where Madrid's past comes alive.

18th century Bourbon

Royal Palace of Madrid (Palacio Real)

The magnificent 1764 palace built by Philip V after the original Habsburg Alcázar burned; 3,418 rooms of lavish royal decoration representing Spain at the peak of its Bourbon glory

Where: Calle de Bailén s/n, 28071 Madrid

Admission: €13 (adult)

17th century Habsburg

Plaza Mayor

Juan Gómez de Mora's masterpiece completed in 1619 — the ceremonial heart of Habsburg Madrid where bullfights, executions, royal ceremonies, and markets were all held within its arcaded walls

Where: Plaza Mayor, 28012 Madrid

Admission: Free

Medieval / modern

Puerta del Sol

The original 15th-century gate ('Gate of the Sun') in Madrid's medieval walls, now a grand square marking kilometre zero of Spain's road network; the 1847 Real Casa de Correos (post office) clock tower is iconic

Where: Puerta del Sol, 28013 Madrid

Admission: Free

16th century Habsburg

Monasterio de El Escorial

Philip II's extraordinary 1584 palace-monastery-mausoleum complex in the Sierra de Guadarrama — one of the world's most ambitious architectural projects and the spiritual heart of the Spanish Empire; royal pantheon contains Spanish monarchs from Charles I onwards

Where: San Lorenzo de El Escorial (55 km from Madrid)

Admission: €12

4th century BC Egypt

Temple of Debod (Templo de Debod)

An authentic 2,200-year-old Egyptian temple dismantled stone by stone and gifted to Spain in 1968 for its role in saving Abu Simbel; the only Egyptian temple in the Iberian Peninsula

Where: Calle de Ferraz 1, 28008 Madrid

Admission: Free

18th–19th century collection

Prado Museum

The Spanish royal art collection made public in 1819 — Velázquez's Las Meninas (1656), Goya's Black Paintings (1819–23), El Greco's El caballero de la mano en el pecho, and Bosch's Garden of Earthly Delights are the undisputed masterpieces

Where: Calle de Ruiz de Alarcón 23, 28014 Madrid

Admission: €15 (free evenings)

18th century founding

Real Academia de Bellas Artes de San Fernando

Founded by Philip V in 1744 as Spain's royal academy of fine arts — Goya served as its director; the collection includes 13 oils by Goya plus major works by Velázquez, Rubens, and Murillo

Where: Calle de Alcalá 13, 28014 Madrid

Admission: €8 (free Wednesday)

12th century origins / 1993 consecration

Almudena Cathedral Crypt

Madrid's main Catholic cathedral incorporates a Romanesque crypt from the original 12th-century church on this site; the cathedral itself was finally consecrated in 1993 after 110 years of construction

Where: Calle de Bailén 10, 28013 Madrid

Admission: €1 (Crypt museum €6)

2004

11-M Memorial (Atocha Station)

A moving memorial to the 193 victims of the March 11, 2004 terrorist bombings — a transparent cylindrical tower in the atrium of Atocha station inscribed with messages from the public

Where: Puerta de Atocha station, 28045 Madrid

Admission: Free

1926 art deco

Circulo de Bellas Artes

A magnificent 1926 art deco cultural centre and club on Alcalá street with an extraordinary rooftop terrace offering panoramic city views, a cinema, theatre, and regularly changing exhibitions

Where: Calle de Alcalá 42, 28014 Madrid

Admission: €4 rooftop; free exhibitions

Museums

Curated collections that tell Madrid's story.

Museum

Reina Sofía Museum

Spain's national museum of 20th-century art — Guernica, Dalí, Miró, and the artistic response to the Civil War era

Hours: Mon & Wed–Sat 10:00–21:00, Sun 10:00–19:00

Admission: €12 (free 19:00–21:00 Mon/Wed–Fri, 14:30–21:00 Sat, 12:30–19:00 Sun)

Museum

National Archaeological Museum

One million artefacts from prehistoric Iberia through the medieval period; the Dama de Elche and Visigothic gold treasure are the highlights

Hours: Tue–Sat 09:30–20:00, Sun 09:30–15:00

Admission: €3 (free Sat 14:00+ and all day Sun)

Museum

Army Museum (Museo del Ejército)

Spain's national military museum in the Alcázar of Toledo, with an extraordinarily comprehensive collection of weapons, armour, and military history from ancient times to the present

Hours: Tue–Sun 10:00–17:00

Admission: €5 (free Sunday)

Historical tours

Guided experiences that bring history to life.

Tour

Walking tours

Free walking tours depart daily at 10:00 and 12:00 from Puerta del Sol (tip-based, approximately €5–€10); multiple operators including Sandeman's New Europe and Free Tour Madrid

Tour

Day tours

Full-day historical tours €50–€80 including El Escorial monastery and Valle de los Caídos; Letango Tours and Madrid Tour Guide offer quality options

Tour

Private tours

Private history-focused guides from €120/half day; expert guides at the Prado Museum available from €35/1.5-hour focus tour