Margraviate of Brandenburg fief of the Polish–Lithuanian Commonwealth, to which the electors paid homage. The electors of Brandenburg spent the next two centuries attempting to gain lands to unite their separate territories (the Mark Brandenburg, the territories in the Rhineland and Westphalia, and Ducal Prussia) to form one geographically contiguous domain. In the Peace of Westphalia ending the Thirty Years' War in 1648, Brandenburg-Prussia acquired Farther Pomerania and made it the Province of Pomerania by the Treaty of Stettin (1653). In the second half of the 17th century, Frederick William, the "Great Elector", developed Brandenburg-Prussia into a major power. The state constructed Brandenburg's
Portuguese Restoration War at the negotiations for the European settlement-of-settlements, the new "realpolitik" of the peace of Westphalia (1648). With this treaty and the end of hostilities in Catalonia in 1652, Spain was again ready to direct its efforts against Portugal, but it faced a lack of men, resources, and, especially, good military commanders. By 1662, Spain had committed itself to a major effort to end the war. John of Austria the Younger, Philip IV's illegitimate son, led 14,000 men into Alentejo, and, the following year, they succeeded in taking Évora, the major city of the region. The Portuguese, under António Luís de