It was part of Jan III Sobieski’s autumn expedition, aimed at destruction of mounted Tatar units, which plundered southeastern provinces of the Polish–Lithuanian Commonwealth.
After the Battle of Niemirow, Crown Hetman Jan Sobieski headed towards Grodek Jagiellonski, with some 2,500-3,000 cavalry and dragoons.
When his unit reached the area of Jaworow, Sobieski realized that main Crimean Tatar forces advanced towards Przemysl and then southwards to Sambir.
Polish hetman decided to stop their retreat, and after a skirmish at the village of Hoszany, Tatar prisoners told the Poles that a 10,000 strong army under Noradin-Soltan camped in a valley near the town of Komarno.
Sobieski wanted to surprise the enemy, ordering his soldiers to march 57 kilometers in a heavy rain and along muddy roads.