The Old Swiss Confederacy a "de facto" independent state throughout the early modern period, although still nominally part of the Holy Roman Empire until 1648 when the Treaty of Westphalia ended the Thirty Years' War. The Swiss Reformation divided the confederates into Reformed and Catholic parties, resulting in internal conflict from the 16th to the 18th centuries; as a result, the federal diet () was often paralysed by hostility between the factions. The Swiss Confederacy fell to invasion by the French Revolutionary Army in 1798, after which it became the short-lived Helvetic Republic. The adjective "old" was introduced after the Napoleonic era with ,
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