In 1676 the pro-Turkish Doroshenko was defeated at Chyhyryn by the Russians and forced to abdicate. In 1677 Turkish and Crimean troops were sent to re-take Chyryhin. The Russians barely won the siege, Selim received part of the blame and was removed. See Russo-Turkish War (1676–1681). He spent the winter in Kaffa and retired to Rhodes.