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
War of the Spanish Succession was reliant on the so-called "Maritime Powers" (England and the Dutch Republic) and also a higher priority for them. By formalising religious divisions within the Empire, the [[Peace of Westphalia|1648 Peace of Westphalia]] weakened its integrity and by 1700, the larger German states were pursuing their own policies. [[Electorate of Bavaria|Bavaria]] allied itself with France while as King of Poland, [[Augustus II the Strong|Augustus of Saxony]] was fully occupied by the [[Great Northern War]]. To gain [[Frederick I of Prussia|Frederick of Prussia]]'s support, Leopold recognised him as King, with Prussia made an equal member of the Grand Alliance. [[George I