Westphalia to be Catholic. Osnabrück was divided almost equally between Catholicism and Protestantism. Parts of Westphalia came under Brandenburg-Prussian control during the 17th and 18th centuries, but most of it remained divided by duchies and other areas of feudal power. The Peace of Westphalia of 1648, signed in Münster and Osnabrück, ended the Thirty Years' War. The concept of nation-state sovereignty resulting from the treaty became known as "Westphalian sovereignty". After the defeat of the Prussian Army by the French at the Battle of Jena–Auerstedt, the Treaty of Tilsit in 1807 made the easternmost portion of today's Westphalia part of the
Hessian War Peace Congress mediated by Duke Ernest of Saxe-Gotha and which resulted in a unification and peace treaty that was sealed in April 1648, ahead of the Treaty of Westphalia itself. Before the Westphalian Peace Treaty, Cassel fought one last time against the imperial side, winning the Battle of Wevelinghoven in the Rhineland, together with other Protestant troops. Darmstadt, however, was not involved in this battle. Under the Unification Treaty between Cassel and Darmstadt, Upper Hesse was permanently divided. Darmstadt had to give up a significant part of Upper Hesse to Cassel, not least Marburg and other occupied territories, including the