第一次瓜分波兰
During the First Partition of Poland, the town was annexed by the Kingdom of Prussia in 1772. During the Napoleonic Wars it was part of the Polish Duchy of Warsaw from 1807 to 1815, but was reannexed by Prussia afterwards.