During the period of feudal fragmentation of Poland it was initially part of the Duchy of Greater Poland and then subject of fighting between the Duchy and the Margraviate of Brandenburg, which took control of it after 1296. It was sold by the Brandenburgians to the Monastic Order of the Teutonic Knights in 1317, under the authority of the knights Burkhard and Heinrich von der Osten. However, in 1365 it became part of the Kingdom of Poland, during the rule of King Casimir III the Great, to be lost again to the Teutonic Knights in 1408.
During the feudal fragmentation of Poland, this region was initially a part of the Duchy of Greater Poland and later engaged in disputes with the Margraviate of Brandenburg. After 1296, it fell under Brandenburg control and was sold to the Teutonic Monastic Order by Burkhard and Heinrich von der Osten in 1317. In 1365, it became part of the Kingdom of Poland during King Casimir III the Great's rule but was later reclaimed by the Teutonic Knights in 1408.