Muhammad Husayn Khan Mushtaq
Muhammad Husayn Khan Mushtaq, was the third khan of Shaki. He was described as a courageous but ruthless man by Abbasgulu agha Bakikhanov.
Early years
He was a grandson of Haji Chalabi. His father Hasan agha died in a battle against the Afsharid army. 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.Reign
Despite his succession, naib of Arash, Malik Ali, who was now styled "Sultan of Arash" did not acknowledge his suzerainty. 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. Malik Ali was killed shortly thereafter by the khan.He became allied to Fatali khan of Quba by 1760s in order to invade the Shirvan Khanate. In order to start the negotiation, Muhammad Said khan of Shirvan himself went to Fatali Khan's court and his brother Aghasi khan headed to Muhammad Husayn's. However, Aghasi khan was blinded by Muhammad Husayn, while his brother was imprisoned. The khanate was invaded by 700 Shaki soldiers, whereas the Quba army was as strong as 7000. The khanate was divided between Shaki and Quba Khanates who appointed their own governors. The western part was governed by Manaf Zarnavai.
Soon in August 1768, an uncovered plot worsened the relation between allies. 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. The Shaki armies were crushed by the Quba and Gazikumukh alliance on 20 September 1768, Shirvan was fully annexed to the Quba Khanate. The peace agreement was signed in July 1769.