In 1793 it was annexed by Prussia in the Second Partition of Poland, in 1807 regained by Poles and included within the short-lived Duchy of Warsaw, in 1815 re-annexed by Prussia, and from 1871 to 1918 was also part of Germany. The population took part in Polish uprisings of 1830–1831 and 1848.
In 1793 it was absorbed by Prussia in the Second Partition of Poland, regained by Poles and incorporated into the brief-lived Duchy of Warsaw, re-annexed by Prussia in 1815, and from 1871 to 1918 was also part of Germany. The population participated in Polish uprisings of 1830–1831 and 1848.