After the murder of his uncle Aghakishi beg, he fled to Shirvan and appealed for help from Aghasi Khan, who in turn defeated the Gazikumukh armies and retook Shaki.
Only in 1761 he was put under vassalage of the khanate thanks to the interference of Fatali khan Afshar who was at time campaigning in Karabakh.
Manaf Zarnavai, who was instructed by Muhammad Husayn khan, was aiming to overthrow the Quba rule and incorporate Shirvan to Shaki as a whole.
However their conspiracy was discovered by Fatali khan who invaded Agsu on 17 August 1768 and killed Manaf.
Husayn khan chose to murder him in 1770, which caused his other uncle Haji Abdulqadir to rebel and flee to the mountains.