He took part in the War of the Third Coalition and in the War of the Fourth Coalition. He proved himself in the Battle of Austerlitz (he was awarded the Order of Saint Anna, 4th class and promoted to "stabs-kapitan") and in 1807 in the Battle of Heilsberg and Battle of Friedland, for which he was awarded the Order of Saint Vladimir, 4th class and promoted to captain. On May 20, 1808, he was promoted to colonel.