Brandenburg-Prussia Catholic armies swept the land back and forth, killing, burning, seizing men and taking the food supplies. Upwards of half the population was killed or dislocated. Berlin and the other major cities were in ruins, and recovery took decades. By the Peace of Westphalia, which ended the Thirty Years' War in 1648, Brandenburg gained Minden and Halberstadt, also the succession in Farther Pomerania (incorporated in 1653) and the Duchy of Magdeburg (incorporated in 1680). With the Treaty of Bromberg (1657), concluded during the Second Northern War, the electors were freed of Polish vassalage for the Duchy of Prussia and gained
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