The 18th-century border of Poland ran in close proximity, south of the town. The town was occupied by Russia from 1758 to 1762 during the Seven Years' War.
In the 18th century, the Polish border was adjacent to the town, situated south of it. The town was under Russian control from 1758 to 1762 as part of the Seven Years' War.