Spain in the 17th century all contributed to the decline of the Habsburg rule of Spain. The end of the 17th century also brought the end of Habsburg rule. The 18th century began with the War of the Spanish Succession, which concluded in the establishment of the Bourbon dynasty in Spain. In 1469, Ferdinand II of Aragon and Isabella I of Castile united the Crowns of Aragon and Castile into one, creating the early modern Spanish state. Although this ensured future Spanish rulers would rule over both Aragon and Castile, both regions had their own administration and legal systems. In addition, Aragon itself was divided
House of Bourbon nobles under the Direct Capetian and Valois kings. In 1589, at the death of Henry III of France, the House of Valois became extinct in the male line. Under the Salic law, the Head of the House of Bourbon, as the senior representative of the senior-surviving branch of the Capetian dynasty, became King of France as Henry IV. Bourbon monarchs then united to France the small kingdom of Navarre, which Henry's father had acquired by marriage in 1555, ruling both until the 1792 overthrow of the monarchy during the French Revolution. Restored briefly in 1814 and definitively in 1815 after