He was born in 1806 to Tahir bek, brother of Aslan bek, the first khan of Kura Khanate. He entered military service in the early 1820s in the cavalry of the Separate Caucasian Corps and from 1823 took part in campaigns against the mountaineers, served in the Caucasian militia units.