He was made a lieutenant on 22 January 1803 in the Preobrazhensky regiment, then a cavalry captain on 13 February 1807 in the Hussar Regiment of the Imperial Guard. He fought at Gutstadt, Heilsberg and Friedland, where he was wounded in the arm and decorated with a gold sabre. He was demobilised and returned to his work as a chamberlain at the court.