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.
In 1772, after the initial separation of Poland, the town, known as Neuenburg, was absorbed by the Kingdom of Prussia and underwent a process of cultural assimilation. However, in the late 19th century, it retained a strong Polish identity.