On May 27, 1813 he was appointed a cadet in the Life Guards Dragoon Regiment, and immediately took part in the War of the Sixth Coalition against Napoleon.
Two years later, at his own request, he was transferred with the rank of lieutenant to the Mitavsky Dragoon Regiment, in which he served until March 17, 1820, when he retired due to illness.