حرب القوقاز
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.