 For the next centuries Czaplinek remained a part of Poland, as a royal town, administratively in the Poznań Voivodeship in the Greater Poland Province of the Polish Crown.Czaplinek was granted various privileges by Polish kings in 1504, 1635 and 1640.In the 1658 Treaty of Bydgoszcz, it came under the control of Brandenburg-Prussia, and was definitively lost by Poland in 1668, although Poles made diplomatic efforts to regain the town until the First Partition of Poland in 1772, but to no avail.