高加索戰爭
Gagarin also continued his friendship with Lermontov. In 1840 he followed the exiled Lermontov to the Caucasus in the Tengin Regiment in the Caucasian War. According to D.A. Stolypin, they lived together in the same tent.