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 Turin (1696) The war was formally ended by the 1697 Treaty of Ryswick which incorporated the Treaty of Turin. By splitting the Allies, Savoy's defection enabled Louis to obtain better terms at Ryswick than he might otherwise have done, for a relatively minor cost. France relinquished Pinerolo but Savoy's territories in Transalpine France were almost impossible to defend and were occupied by France again from 1704 to 1714. Victor Amadeus achieved his primary goals of recovering Pinerolo and Casale, while his daughter's marriage enhanced Savoy's position on the European stage. The cost was a devastated and impoverished country and "...a reputation for...cynical