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
Treaty of Belgrade the autonomy of Kingdom of Serbia which had existed since 1718. This territory would await the next Habsburg-Ottoman war to be temporarily again included into the Habsburg Monarchy in 1788 with the help of Koča Anđelković. Treaty of Belgrade The Treaty of Belgrade, known as the Belgrade peace was the peace treaty signed on September 18, 1739 in Belgrade, Habsburg Kingdom of Serbia (today Serbia), by the Ottoman Empire on one side and the Habsburg Monarchy on the other, that ended the Austro–Turkish War (1737–39). This treaty ended the hostilities of the five-year Austro-Russian–Turkish War (1735–39), in which the Habsburgs