Thirty Years' War on the inhabitants of occupied territories. The war also bankrupted most of the combatant powers. The Dutch Republic enjoyed contrasting fortune; it was removed from the Holy Roman Empire and was able to end its revolt against Spain in 1648 and subsequently enjoyed a time of great prosperity and development, known as the Dutch Golden Age, during which it became one of the world's foremost economic, colonial, and naval powers. The Thirty Years' War ended with the Treaty of Osnabrück and the Treaties of Münster, part of the wider Peace of Westphalia. The war altered the previous political order of
Treaty of Teschen margraviates in 1791. The Electorate of Saxony received a sum of six million guilders (florins) from Bavaria in exchange of its inheritance claims. With the accession of Elector Charles Theodore, the electorates of Bavaria and the County Palatine of the Rhine (i.e. the territories in the Rhenish Palatinate and the Upper Palatinate) were under the united rule of the House of Wittelsbach. Their electoral votes were combined into one per a provision in the earlier Treaty of Westphalia in 1648, thereby reducing the number of electorates in the Holy Roman Empire to eight. The Innviertel, except for a short time