In 1837 he became the commander of the 5th Infantry Corps of Russian Army. In 1843 he and his Corps took part in quelling another uprising against the Russian Empire, that of Imam Shamil during the Caucasian War. In 1848 he commanded Russian troops in Moldova and Walachia. In 1849 he commanded the 5th Corps sent to aid Austria during the Hungarian Revolution of 1848. In 1849 he defeated Polish-Hungarian forces under general Józef Bem at the Battle of Segesvár. During the Crimean War (1854 –1856) he commanded the Army South operating in the middle Danube region.