 In 1307 Waldemar signed an agreement with the Swienca family ceding him the lands of Pomerelia (Gdańsk Pomerania), whereafter Brandenburg troops occupied Świecie, Tczew and all strategic locations up to Gdańsk (Danzig).In turn, the Polish king Władysław I called for the support of the Teutonic Knights, and after their takeover of Danzig, Waldemar by the 1309 Treaty of Soldin relinquished his claims on Pomerelia east of the Łeba River to the Teutonic Order for a payment of 10,000 silver Mark.The castle districts Schlawe and Stolp including the Swienca residence of Rügenwalde at first remained with Brandenburg.