In 1788-1791 he took part in the Russo-Turkish War, serving at the Siege of Ochakov and the Danube river raids, and was promoted to major general on 21 March 1791.
Like many other generals of this time, he was dismissed by Emperor Paul I on 11 July 1799 and was imprisoned in the Dünamünde fortress for several months.