The foundation of modern Spain was laid when Isabella I of Castile and Ferdinand II of Aragon married in 1469. Their joint rule (the "Catholic Monarchs") unified the two largest Iberian crowns in 1479, though each kingdom kept its own laws, institutions, and currencies for centuries.
The conquest of the Emirate of Granada in 1492 ended nearly 800 years of Muslim rule on the peninsula, cementing the monarchs' prestige and freeing resources for overseas expansion.
Their grandson, Charles I (Charles V, Holy Roman Emperor), inherited a vast empire spanning the Americas, the Low Countries, Italy, and the Philippines. The 16th century saw Spain become the world's first global superpower.
After the 17th-century decline and the War of Spanish Succession (1701–1714), the Bourbon dynasty took the throne. The Nueva Planta decrees (1707–1716) finally abolished the separate institutions of Aragon, Catalonia, Valencia, and Majorca, creating a centralized, unitary Spanish state.
Spain emerged not from a single event but through a centuries-long process: dynastic union → military conquest → imperial expansion → bureaucratic centralization.