Doroshenko decided to fight back, and in 1676, his army of 12,000 men seized the city of Chyhyryn, counting on the approaching Turkish-Tatar army. However, the Russian and Ukrainian forces under the command of Samoilovich and Grigory Romodanovsky besieged Chigirin and made Doroshenko surrender. Leaving a garrison in Chyhyryn, the Russian and Ukrainian armies retreated to the left bank of the Dnieper. The Turkish Sultan appointed Yuri Khmelnitsky Hetman of the Right-bank Ukraine, who had been the Sultan’s prisoner at that time. In July 1677, the Sultan ordered his army (120,000 men) under the command of Ibrahim Pasha to advance towards Chigirin.
In July 1678, the Turkish army (approx. 80,000 men) of the Grand VizierKara Mustafa besieged Chigirin once again. The Russian and Ukrainian armies (200,000 men) broke through the Turkish covering force, however, the Turks had already managed to occupy Chigirin on August 11. The Russian army retreated over the Dnieper, beating off the pursuing Turkish army, which would finally leave them in peace.