Louis XIV of France the war with a French victory, in order to establish a lasting peace between the Catholic nations. The Queen also gave a partial Catholic orientation to French foreign policy. This was felt by the Netherlands, France's Protestant ally, which negotiated a separate peace with Spain in 1648. In 1648, Anne and Mazarin successfully negotiated the Peace of Westphalia, which ended the Thirty Years' War in Germany. Its terms ensured Dutch independence from Spain, awarded some autonomy to the various German princes of the Holy Roman Empire, and granted Sweden seats on the Imperial Diet and territories to control the mouths
Treaty of Stettin (1630) Pomerania to enforce Brandenburg's claims on succession, but they were defeated by Sweden in the ensuing battles. Some of the Pomeranian nobility had changed sides and supported Brandenburg. By the end of the war, the treaty was superseded by the Peace of Westphalia (1648) and the subsequent Treaty of Stettin (1653), when Pomerania was partitioned into a western, Swedish part (Western Pomerania, thenceforth Swedish Pomerania), and an eastern, Brandenburgian part (Farther Pomerania, thenceforth the Brandenburg-Prussian Province of Pomerania). Following the Capitulation of Franzburg in 1627, the Duchy of Pomerania was occupied by forces of Ferdinand II, Holy Roman Emperor, under