 It was granted a city charter in 1564.In late 1648, during the Khmelnytsky Uprising, a combined Cossack and Tartar army under Asand Demko seized the town.However, following the Battle of Kopychyntsi of May 12, 1651, in which the enemy forces were defeated by hetman Marcin Kalinowski, it returned to Poland.