In 1812, he joined the People's Militia in Moscow. He received the rank of Lieutenant and served in the battles of Ostrovno, Valutino, Borodino and Krasnoi. In 1813, he was assigned to a Hussar regiment, commanded by General Pyotr Palen, that followed Napoleon's retreating army and participated in numerous battles before reaching Paris.