Bourbon Spain is the period in the early modern History of Spain from the end of Habsburg rule and the ensuing War of the Spanish Succession over the ascension of a relation of Louis XIV of France to the throne of Spain (1700–1715) until the Napoleonic Wars of 1808–1813, which led to the establishment of Spain as a constitutional monarchyThe Age of Enlightenment (in Spanish, Ilustración) came to Spain in the eighteenth century with a new Bourbon dynasty after the decay of the Spanish economy, bureaucracy, and empire in the latter years of the former Habsburg dynasty.