First Partition of Poland
In 1772, following the First Partition of Poland, the town was located in the Austrian Empire (from 1867 Austria-Hungary) until Poland regained its independence in 1918.