 Located immediately at the border with the Brandenburgian New March region, it was one of the westernmost localities of the Polish–Lithuanian Commonwealth.It was incorporated into the Meseritz district of South Prussia in the course of the 1793 Second Partition.After the Franco-Prussian Treaty of Tilsit in 1807, it was part of the Poznań Department in the newly established Duchy of Warsaw.