After his release in 1672, he participated in a campaign against the Tatars and was captured near Uman and brought to Constantinople, where he was allowed to live in a Greek Orthodox monastery. In 1676 — after the Sultan's ally, Petro Doroshenko, surrendered to the Russians — the Porte decided to use Khmelnytsky's famous name to reinforce their claim to the Right-bank Ukraine starting the Russo-Turkish War (1676–1681).