After both King Wenceslaus II and his young successor, Wenceslaus III, had died, Duke Władysław I could reconquer large parts of the Polish territories. In 1305 the Brandenburg margraves had returned to the lands of Schlawe, Rügenwalde and Stolp. In 1307 they launched from the region a campaign against the fortified castle of Gdańsk in Pomerelia. The attack failed, however, since the local warlord, Wŀadisŀaw Ŀokietek, had recruited soldiers of the Teutonic Knights in order to help defending it. After the Teutonic takeover of Danzig in November 1308, whereby the Knights seized the city and allegedly slaughtered many of the inhabitants, the Ascanian Margrave Waldemar of Brandenburg-Stendal by the Treaty of Soldin sold his claims to Pomerelia east of the Łeba River to the Teutonic Order for the sum of 10,000 silver marks, but retained Schlawe-Stolp. Grand Master Siegfried von Feuchtwangen and Master Heinrich von Dirschau und Schwetz integrated remaining Gdańsk Pomerania into their Monastic State. Emperor Henry VII ratified the Soldin Treaty in 1313, and, though he could not assert any feudal claims to the territory of the extinct Samboride dukes, the now Brandenburgian Lands of Schlawe and Stolp finally were incorporated into the Holy Roman Empire.