The city was first mentioned in 1340 as a village in the Polish powiat (county) of Terebovlia. With time it grew to become a town within the Land of Halicz, itself part of Podole Voivodeship of Poland and then the Polish–Lithuanian Commonwealth.
The city's history is marked by its transformation from a village to a town within the administrative framework of Poland and the Polish–Lithuanian Commonwealth.