The war against Brandenburg ended in 1273 with a treaty (possibly signed at Drawno Bridge), in which Brandenburg returned GdaĆsk to Mestwin while he paid feudal homage to the margraves for the Lands of Schlawe and Stolp.