Browse

Madrid

City

Capital of Spain on the Manzanares in the centre of the Iberian Peninsula. It began as a 9th-century Muslim fortress and has been the seat of the Spanish court since 1561, apart from a short stay of the court in Valladolid.

Significance

Madrid has been the seat of the Spanish court since 1561, with a short stay in Valladolid from 1601 to 1606, and the 1931 constitution named it the capital. It is the political, economic and cultural centre of Spain.

About

Madrid lies on the river Manzanares in the central part of the Iberian Peninsula, about 660 metres above sea level. It is the capital of Spain and of the autonomous community around it, and the country's political, economic and cultural centre. The first historical document about a settlement there dates from the Muslim age. The site had been occupied since prehistoric times, and archaeologists have found remains of a Celtic Carpetani settlement, Roman villas and a Visigoth basilica.

In the second half of the 9th century the Umayyad emir Muhammad I built a fortress on a headland near the Manzanares. It was one of many he ordered on the border between Al-Andalus and the kingdoms of León and Castile, to protect Toledo from attack from the north and to serve as a starting point for Muslim offensives. After the Caliphate of Córdoba broke up in the early 11th century, Madrid became part of the Taifa of Toledo. Alfonso VI of León and Castile seized it in 1083, in the campaign against Toledo that began in 1079, and Toledo fell in 1085. Christians took the centre of the town, while Muslims and Jews were moved to the suburbs. Madrid remained a borderland for a while, and its walls were destroyed in 1110.

Under Castile it grew into a sizeable town. It was confirmed as a royal town in 1123 and from 1188 had the right to representation in the Cortes of Castile. It received its first municipal charter in 1202, and the Cortes met there for the first time in 1309. During the Comuneros revolt Madrid joined the rebels against Charles, Holy Roman Emperor. After the defeat at Villalar it was besieged and occupied by imperial troops, and was then granted the titles Coronada and Imperial.

The decisive change came in June 1561, when Philip II set his court in Madrid, in the old alcázar. The town became the political centre of the monarchy, and its population rose from about 18,000 in 1561 to 80,000 in 1598. The Council of the Indies was established there in 1561 as the governing body for Spanish America. The court moved to Valladolid between 1601 and 1606, and Madrid's population fell, but the city recovered when diplomats, lords and wealthy people returned, along with writers and artists. Extreme poverty remained widespread, and theatre flourished in the corrales de comedias. Cervantes published the first part of Don Quixote there in 1605 and died there in 1616, and Velázquez worked at the court of Philip IV from 1623 until his death in 1660. The Buen Retiro Park was founded in 1631.

In the War of the Spanish Succession Madrid changed hands several times, and Philip V entered it on 3 December 1710. He built the Royal Palace, the Royal Tapestry Factory and the main Royal Academies, and the 18th century brought public investment in roads and transport radiating from the city. Charles III, called the best mayor of Madrid, added sewers, street lighting, cemeteries outside the city and cultural institutions. His minister's decree on clothing was opposed by the crowd in the Esquilache Riots of 1766. On 2 May 1808 the people of French-occupied Madrid rose against the troops of Napoleon in the Dos de Mayo uprising, which opened the Peninsular War. Goya recorded the repression in The Third of May 1808.

In the 19th century Madrid became the capital of the liberal state. A French army entered it on 24 May 1823 to restore Ferdinand's absolutism, and the University of Alcalá de Henares moved there in 1836. The economy modernised in the second half of the century, with the railway making the city a logistics hub, and electric street lighting arrived in the 1890s. The population nearly doubled in the first third of the 20th century to more than 850,000. The 1931 constitution was the first to name Madrid as the capital. Madrid was a Republican stronghold from July 1936 and an international symbol of anti-fascist struggle, and it fell to the Francoists in March 1939. Under Franco it grew through mass migration, annexed neighbouring municipalities to reach its present area, and Franco died there in 1975. The 1978 constitution confirmed Madrid as capital, and in 2025 the city had more than 3.4 million people.

Connections

In chronicles

Open on the globe · Wikidata Q2807