In May 1637 , an anti-feudal uprising led by Pavlyuk broke out in Right-Bank Ukraine , which swiftly swept over a significant part of Left-Bank Ukraine . However, it was not until the fall of 1637 that the Polish government was able to assemble an army against the rebels, having entrusted command of it to the full hetman Nikolai Pototsky .
On the morning of December 6 (16), rebels led by Pavlyuk and Skidan launched an offensive on the position of the Polish army. But near the enemy camp, they came across an impenetrable swamp . When, on Pavlyuk’s order, the rebel army retreated and returned to level ground, the Polish cavalry unexpectedly attacked him. The rebels managed to quickly surround themselves with carts in 6 rows, but they did not have enough time to build a fortified camp. Three times they fought off attacks of Polish cavalry, which was supported by infantry and artillery. Only during the fourth attack did one of the Polish detachments manage to break into the rebel camp and set fire to carts with hay and gunpowder . In the evening, Pavlyuk and Skidan with little strength left the camp and went to Chyhyryn to collect reinforcements. The leadership of the rebel army was taken over by Dmitry Gunya . The fight lasted until late at night. At dawn, Gunya led the rebels from the encirclement and retreated to Borovitsa , where he teamed up with Pavlyuk’s detachment.
On December 10 (20), 1637, the Polish army also approached Borowice. Unable to break the resistance of the rebels by force, Nikolai Pototsky proposed negotiations, during which Pavlyuk treacherously seized and executed.