In 1772, after the First Partition of Poland, the town, as Neuenburg, was annexed by the Kingdom of Prussia and was subject to Germanisation policies, however, in the late 19th century it was still mainly populated by Poles.
By 1772, after the initial separation of Poland, the town, known as Neuenburg, was taken over by the Kingdom of Prussia and underwent a process of Germanization. However, by the end of the 19th century, the town still maintained a predominantly Polish population.