In the late-18th-century Partitions of Poland, the town was annexed by Prussia. In 1807 it was regained by Poles and included with the short-lived Duchy of Warsaw, and in 1815 it fell to the Russian Partition of Poland. In the 19th century the population of the town increased significantly.
This passage describes the changing ownership of a town throughout various historical periods, particularly focusing on the impact of the partitions of Poland and its subsequent population changes.