The marriage of Ferdinand II of Aragon and Isabella I of Castile in 1469 laid the foundations of the Monarchy of Spain. In 1492 the Spanish colonization of the Americas began, and political power began to shift away towards Castile. Tensions between Catalan institutions and the Monarchy, alongside the peasants' revolts provoked the Reapers' War (1640–1659). By the Treaty of the Pyrenees the Roussillon was ceded to France. During the War of the Spanish Succession (1701–1714), the Crown of Aragon supported the Archduke Charles of Habsburg. After the surrender of Barcelona in 1714, king Philip V of Bourbon, inspired by the French model, imposed absolutism and a unifying administration across Spain, and enacted the Nueva Planta decrees for every realm of the Crown of Aragon, which suppressed the main Catalan, Aragonese, Valencian and Majorcan political institutions and rights and merged them into the Crown of Castile as provinces. However, the Principality of Catalonia remained as an administrative unit until the establishment of the Spanish provincial division of 1833, which divided Catalonia into four provinces.