European wars of religion of the German states and, to a lesser extent, the Low Countries and Italy, while bankrupting many of the powers involved. The war ended with the Treaty of Münster, a part of the wider Peace of Westphalia. During the war, Germany's population was reduced by 30% on average. In the territory of Brandenburg, the losses had amounted to half, while in some areas an estimated two thirds of the population died. The population of the Czech lands declined by a third. The Swedish army alone, which was no greater a ravager than the other armies of the Thirty Years' War,
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