The village existed in what was the Polish–Lithuanian Commonwealth since at least 1654. In 1784, it was mentioned as a small town, then a possession of the Polish princely family the Lubomirski. After the partitions of the Polish–Lithuanian Commonwealth, the village was annexed by the Russian Empire. During the French invasion of Russia in 1812, the village was occupied by Napoleonic troops for two weeks.