In the Third Partition of Poland (1795), it was annexed by Prussia. In 1807 it was regained by Poles and included within the newly established but short-lived Duchy of Warsaw, and in 1815 it passed to the Russian Partition of Poland. 19th-century owners from the Rzętkowski family took part in the Polish November and January Uprisings against Russia. The village suffered during both World War I, after which in 1918 Poland regained independence, and the Polish–Soviet War, during which it was a site of a battle. In interwar Poland a landscape park was founded around the local manor house of the Schirmer family.