In early October 1676, Hetman Jan Sobieski was stationed in Krasnystaw. On 5 October after finding out that several Tatar units were plundering the area of Zamosc, he decided to destroy them. The main Tatar forces camped near Krasnobrod, and in the night of October 5/6, Sobieski began a 52-kilometer march, which took place in a heavy rain. Early in the morning, Tatar camp was attacked by pro-Polish Cossacks, loyal to Mykhailo Khanenko. When news of the skirmish reached Sobieski, he decided to intervene, arriving at the site of the battle after 30 minutes. Polish forces joined the fighting, while Khanenko himself left Krasnobrod and headed to Zamosc. Several Tatar units were destroyed, and some 2,500 Polish civilians were captured by the invaders.