During the Thirty Years' War (1618–1648) Pomerania fell under Swedish occupation. In 1625 the Wolgast ducal branch was extinct in the male line and bequeathed to Stettin. With the extinction of the Stettin line too in 1637 the electors of Brandenburg inherited Pomerania, however, inhibited by the Swedish occupants. In 1653, after quarrels and negotiations Sweden and Brandenburg partitioned ducal Pomerania into Swedish Pomerania (comprising former Pomerania-Wolgast and the west of former Pomerania-Stettin), and Brandenburgian Pomerania (comprising the former Cammin prince-bishopric and central and eastern parts of former Pomerania-Stettin).