After Ratibor had invaded the adjacent Stolpe Land, then held by his elder brother Duke Swietopelk II, his castle was devastated in the following fratricidal war within the ruling Samborides dynasty. Ratibor was imprisoned, he later joined the Teutonic Knights in Prussia, to whose he bequested his Pomerelian lands. After the extinction of the Samborides, the State of the Teutonic Order purchased Pomerelia from Margrave Waldemar of Brandenburg in the 1309 Treaty of Soldin.