some of the most renowned works of literature and art in history. The 17th century also saw the rise of the Inquisition, which sought to enforce religious conformity in the Spanish Empire. By 1700, Spain had lost much of its territory and influence. The Protestant Reformation dragged the kingdom ever more deeply into the mire of religiously charged wars. The result was a country forced into ever-expanding military efforts across Europe and in the Mediterranean. By the middle decades of a war- and plague-ridden 17th-century Europe, the Spanish Habsburgs had enmeshed the country in continent-wide religious-political conflicts. These conflicts drained it of resources and undermined the economy generally. Spain managed to hold on to most of the scattered Habsburg empire, and help the imperial forces of the Holy Roman Empire reverse a large part of the advances made by Protestant forces, but it was finally forced to recognise the separation of Portugal and the United Provinces (Dutch Republic), and eventually suffered some serious military reverses to France in the latter stages of the immensely destructive, Europe-wide Thirty Years' War. In the latter half of the 17th century, Spain went into a gradual decline, during which it surrendered several small territories to France and England; however, it maintained and enlarged its vast overseas empire, which remained intact until the beginning of the 19th century. 18th century The decline culminated in a controversy over succession to the throne which consumed the first years of the 18th century. The War of the Spanish Succession was a wide-ranging international conflict combined with a civil war, and was to cost the kingdom its European possessions and its position as one of the leading powers on the Continent. During this war, a new dynasty originating in France, the Bourbons, was installed. The Crowns of Castile and Aragon had been long united only by the Monarchy and the common institution of the Inquisition's Holy Office. A number of reform policies (the so-called Bourbon Reforms) were pursued by the Monarchy with the overarching goal of centralized authority and administrative uniformity. They included the abolishment of many of the old regional privileges and laws, as well as the customs barrier between the Crowns of Aragon and Castile in 1717, followed by the introduction of new property taxes in the Aragonese kingdoms. The 18th century saw a gradual recovery and an increase in prosperity through much of the empire. The