He participated in the campaign of 1812, fighting at Ostrovno, Klyastitsy, Smolensk, Tarutino, Maloyaroslavets, and Vyazma. On 15 June he was promoted to major general. On 30 June he commanded troops at Ashmyany. At the Battle of Borodino he was wounded in action. He led numerous campaigns in the following two years, and in 1814 was appointed governor general of the Duchy of Schleswig.