Generated by GPT-5-mini| History of Spain | |
|---|---|
| Conventional long name | Kingdoms and States on the Iberian Peninsula |
| Common name | Spain |
| Capital | Madrid |
| Largest city | Madrid |
| Official languages | Spanish language; regional: Catalan language, Galician language, Basque language |
| Government type | Varied: kingdoms, unions, empires, republics, constitutional monarchy |
| Established | Earliest settlements c. 1.2 mya; successive polities through Antiquity–modern era |
History of Spain Spain's history spans prehistoric settlement, classical conquest, medieval fragmentation and reconquest, imperial global expansion, decline and reform, 20th-century turmoil, and contemporary constitutional monarchy. This narrative traces interactions among peoples and polities such as the Iberians, Celts, Phoenicians, Greeks, Carthage, Roman Republic, Visigothic Kingdom, Umayyad Caliphate, Kingdom of Castile, Aragon, Habsburg dynasty, Bourbon dynasty, Second Spanish Republic, Francoist Spain, and modern Kingdom of Spain.
Human presence on the peninsula begins with Atapuerca hominins and Paleolithic cultures; Mesolithic and Neolithic societies include the Cardium pottery and megalithic builders such as those who created the Dolmen of Menga. Iron Age Iberia saw the emergence of the Iberians and Celtiberians alongside maritime colonies of Phoenicia and Greek city-states like Emporion. Contacts produced hybrid cultures evidenced at sites such as Numantia and artifacts of the Tartessos horizon; Mediterranean trade linked the peninsula to Carthage and later to the expanding Roman Republic.
Roman conquest after the Second Punic War integrated Hispania into the Roman Empire as provinces like Hispania Tarraconensis and Hispania Baetica, transforming urban centers such as Tarragona, Emerita Augusta, and Corduba. Roman law, the Latin language, and infrastructures—roads, aqueducts, and mines like Las Médulas—reshaped society while figures including Trajan and Hadrian had Iberian ties. Late Antiquity brought administrative reform under the Diocletian and Constantine the Great cohorts, pressure from Vandals, Suebi, and Alans, and eventually the establishment of the Visigothic Kingdom after the fall of the Western Roman Empire.
The Visigoths established a Christian monarchy centered at Toledo that produced legal codices like the Liber Iudiciorum and saw rulers such as Leovigild and Reccared I. In 711–718 the Umayyad invasion led by Tariq ibn Ziyad and the collapse of Visigothic hegemony, producing Islamic al-Andalus under governors and emirs of Córdoba, including the Umayyad Emirate of Córdoba and the later Caliphate of Córdoba under Abd al-Rahman III and Al-Hakam II. Al-Andalus was a center of learning featuring scholars associated with the House of Wisdom transmissions, the construction of the Great Mosque of Córdoba, and convivencia interactions among Muslims, Mozarabs, and Sephardic Jews until fragmentation into taifa kingdoms and pressure from Christian polities.
Christian polities—the Kingdom of Asturias, County of Castile, Kingdom of Navarre, Kingdom of León, Kingdom of Aragon, and later the Kingdom of Portugal—expanded via battles such as Covadonga and sieges like Toledo (1085) and Zaragoza (1118). Military orders including the Order of Santiago and the Order of Calatrava aided campaigns culminating in the conquest of Valencia and the capture of Seville (1248) under rulers like Ferdinand III of Castile. Dynastic unions, notably the marriage of Isabella I of Castile and Ferdinand II of Aragon, and events like the Treaty of Tordesillas and the 1492 expulsion policies reshaped faith and diplomacy while explorers such as Christopher Columbus initiated overseas expansion.
The accession of Charles V, Holy Roman Emperor and his son Philip II of Spain placed Spain at the center of a global Habsburg empire encompassing Castile and León, Aragonese domains, the Netherlands, parts of Italy including Naples and Milan, and vast overseas territories in the Americas such as the Viceroyalty of New Spain and the Viceroyalty of Peru. The empire's reach involved conquistadors like Hernán Cortés and Francisco Pizarro, institutions such as the Council of the Indies, and conflicts including the Spanish Armada defeat, the Eighty Years' War, and wars with the Ottoman Empire. Cultural florescence produced the Spanish Golden Age with figures like Miguel de Cervantes, Diego Velázquez, and Lope de Vega even as fiscal strains, military overextension, and the Thirty Years' War tested Habsburg hegemony.
The War of the Spanish Succession brought the Bourbon dynasty to power and reforms under ministers such as José de Gálvez and Marqués de la Ensenada attempted modernization via fiscal and administrative changes known as the Bourbon Reforms. The Peninsular War (1808–1814) against Napoleon Bonaparte featured guerrilla resistance, the Cortes of Cádiz and the liberal Spanish Constitution of 1812, while independence movements in the Viceroyalty of New Spain and the Viceroyalty of the Río de la Plata produced loss of American possessions. The 19th century saw dynastic crises like the Carlist Wars, reigns of monarchs including Ferdinand VII and Isabella II, and political alternation between conservatives and liberals culminating in the Glorious Revolution (1868) and brief regimes such as the First Spanish Republic and the Restoration (Spain) under Alfonso XII.
The early 20th century included the Spanish–American War (1898), social unrest, and the dictatorship of Miguel Primo de Rivera. The proclamation of the Second Spanish Republic (1931) preceded political polarization and the Spanish Civil War (1936–1939) between the Republican side and the Nationalists led by Francisco Franco, whose victory established Francoist Spain. Postwar isolation gave way to economic stabilization policies, agreements with the United States including bases accords, and eventual transition after Franco's death to democracy under King Juan Carlos I and the 1978 Spanish Constitution. Spain joined NATO and the European Community (later European Union), experienced decentralization via the Autonomous communities of Spain including Catalonia and Basque Country, faced challenges from ETA (separatist group), underwent economic modernization, and in the 21st century confronted the Spanish financial crisis (2008) and political developments such as the rise of parties like Podemos (Spanish political party) and Vox (political party), ongoing debates over sovereignty in Catalonia independence movement, and the reign of King Felipe VI.