In 1776, he fought on the Kuban steppes, including a fierce battle with Caucasian mountain brigands. On 30 January 1777 he took part in the occupation of Temryuk, from 1779 to 1782 in the fighting in Poland and in 1783 the capture of the Taurian Peninsula. On 1 January 1786 he was promoted to second major. From 1792 until 1794 he took part in the Polish campaigns once again. During the Kościuszko Uprising, on 26 May 1794 his horse was killed under him. On 29 September that year he was promoted to major for his conduct at the Battle of Maciejowice and he also fought at the storming of Praga (a suburb of Warsaw), taking on a battery of 21 guns.