Spain
Who ruled Madrid?
Madrid dates from about 865 CE. On our historical maps, the ground it stands on has been drawn inside 16 different states, empires and peoples. Read the history of Spain.
The history of Madrid
Madrid stands on the high, dry plateau of central Spain, on a modest river, the Manzanares, and close to the geographic centre of the Iberian peninsula. Unlike most European capitals it was not an ancient city or a natural trading hub. It began as a small Muslim fortress and spent five centuries as an ordinary Castilian town until a king chose it as the seat of his court in 1561. Its history since then has been the history of Spanish government: royal building, revolt against Napoleon, a long siege in the Civil War and the transition to democracy.
From Mayrit to the royal court
Although people lived along the Manzanares in prehistoric and Roman times, the city's story begins in the second half of the ninth century, when the Umayyad emir of Córdoba, Muhammad I, built a fortress called Mayrit on a bluff above the river. It guarded the approaches to Toledo against the Christian kingdoms to the north. During the Reconquista King Alfonso VI of Castile took Madrid in the 1080s, around the time of his capture of Toledo in 1085, and it became a town of the Crown of Castile with a mixed Christian, Muslim and Jewish population. Kings sometimes stayed there and the Cortes occasionally met there, but it remained a minor place.
That changed in 1561, when Philip II moved his court permanently to Madrid, probably because of its central position and its good supply of water and hunting grounds. Apart from a brief move to Valladolid from 1601 to 1606, it has been the capital ever since. Under the Habsburgs the town filled with nobles, clergy, officials and servants of the Spanish Empire. The Plaza Mayor was completed in 1619, and writers such as Cervantes, Lope de Vega and Quevedo lived and worked in its streets.
Bourbons, revolt and civil war
After the old royal castle burned down in 1734, the Bourbon kings built the vast Royal Palace on its site. Charles III, who reigned from 1759 to 1788, gave the city paved and lit streets, sewers, the Puerta de Alcalá and the building that became the Prado Museum. On 2 May 1808 the people of Madrid rose against the French troops occupying the city, and the brutal reprisals, painted by Goya, helped launch the Peninsular War, part of the Napoleonic Wars. Napoleon's brother Joseph ruled from Madrid as king until 1813.
The nineteenth century brought political turmoil, railways and a planned expansion beyond the old walls. When the army revolted in July 1936, Madrid stayed loyal to the Republic, and Francisco Franco's forces reached its edge in November. The defenders, helped by the International Brigades, held the city through a siege and bombing that lasted until the Nationalists entered on 28 March 1939, days before the end of the war.
Under Franco Madrid grew enormously as migrants from the countryside filled new suburbs. After his death in 1975 the city became the stage of Spain's transition to democracy, surviving an attempted military coup in the parliament in February 1981, and the cultural flowering known as the Movida. On 11 March 2004 bombs on commuter trains killed 191 people. Today Madrid has about 3.4 million inhabitants and almost 7 million in its region, and it is the capital of Spain and its largest city.
In pictures
2 images · scroll →Timeline
22 periods- 123,000 BCE – 10,000 BCENeanderthalMap of 123,000 BCE →
- 10,000 BCE – 1500 BCENo state drawn here on the mapMap of 10,000 BCE →
- 1500 BCE – 500 BCECeltiberiansMap of 1500 BCE →
- 500 BCE – 400 BCENo state drawn here on the mapMap of 500 BCE →
- 400 BCE – 323 BCEHallstatt cultureMap of 400 BCE →
- 323 BCE – 100 BCENo state drawn here on the mapMap of 323 BCE →
- 100 BCE – 1 BCERoman RepublicMap of 100 BCE →
- 1 BCE – 300 CERoman EmpireMap of 1 BCE →
- 300 CE – 400 CERome (Maximian)Map of 300 CE →
- 400 CE – 500 CEWestern Roman EmpireMap of 400 CE →
- 500 CE – 600 CEVisigothsMap of 500 CE →
- 600 CE – 700 CEVisigothic KingdomMap of 600 CE →
- 700 CE – 800 CEUmayyad CaliphateMap of 700 CE →
- 800 CE – 1000 CEEmirate of CórdobaMap of 800 CE →
- 1000 CE – 1100 CECaliphate of CórdobaMap of 1000 CE →
- 1100 CE – 1279 CECastillaMap of 1100 CE →
- 1279 CE – 1492 CECastileMap of 1279 CE →
- 1492 CE – 1530 CECastilleMap of 1492 CE →
- 1530 CE – 1650 CESpainMap of 1530 CE →
- 1650 CE – 1715 CESpainunder Spanish HabsburgMap of 1650 CE →
- 1715 CE – 1900 CESpainMap of 1715 CE →
- 1900 CE – todaySpainMap of 1900 CE →
Quick answers
- Who rules Madrid today?
- On the latest map, Madrid is in Spain.
- Who ruled Madrid the longest?
- On our maps, the Roman Empire, for about 301 years (1 BCE to 300 CE).
- How many times has Madrid changed hands?
- Our maps show it passing to a new ruler 8 times since 1 CE.
- Who ruled Madrid in 1 CE, 1000, 1500 and 1900?
- In 1 CE: Roman Empire. In 1000: Caliphate of Córdoba. In 1500: Castille. In 1900: Spain.
Dates are the years of our map snapshots, which are decades or centuries apart, so a change shown between two years happened at some point in that gap. The borders come from the historical-basemaps project and are approximate, especially for the ancient world and for peoples without fixed frontiers.
Madrid on this site
- Died in Madrid
- Miguel de Cervantes (1547–1616) and Francisco Franco (1892–1975)
- Madrid in the guided tours
- Napoleon's Wars and The Spanish Empire
Visit today
See Madrid for yourself
Walking tours, museum and monument tickets, and guided visits to the places where Madrid's history happened.
Tours and tickets in MadridOn GetYourGuide. We may earn a commission if you book. See our disclosure.