In the second half of the 16th century the town belonged to the Polish nobleman Skarbek. In October 1629, a famous battle took place near the town, in which the registered Cossacks and the Polish army under the command of Stefan Khmeletsky defeated the Tatar. The attackers were driven further, in particular, to Monastyrysk, where their remains were again destroyed.