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
Treaty of the Pyrenees Spanish Habsburg victories in the Dutch Revolt in the 1620s and at the Battle of Nördlingen against Sweden in 1634. By 1640, France began to interfere in Spanish politics, aiding the revolt in Catalonia, while Spain responded by aiding the Fronde revolt in France in 1648. During the negotiations for the Peace of Westphalia in 1648, France gained the Sundgau and cut off Spanish access to the Netherlands from Austria, leading to open warfare between the French and Spanish. After 23 years of war, an Anglo-French alliance was victorious at the Battle of the Dunes in June 14, 1658, but