Career
Mohammad Hasan Khan fought the Afsharids, Devellu Qajars, Zands, and Afghans to rule over all Iran.
In 1744, he attacked Astarabad against the Afsharids and Devellu Qajars led by Mohammad Zaman Khan, son of the governor Mohammad Hossein Khan Devellu Qajar who was appointed in that position by Nader Shah Afshar (r. 1736–1747). With a force of 3000 troops of Qajar, Yamut, and other tribes, Mohammad Hasan Khan conquered Astarabad with no fight due to the escape of Mohammad Zaman Khan. The hold on Astarabad, however, short-lived as Nader Shah ordered General Behbud Khan to take it back. Following a fight between the two sides, Mohammad Hasan Khan lost the battle to Behbud Khan and escaped to Qara Qum. In a joined operation in Astarabad, General Behbud Khan and Mohammad Hossein Khan Devellu massacred the Ashaqeh-bash Qajar tribe and other supporters. Subsequently, Mohammad Hasan Khan lost Astarabad.
In 1747, following the assassination of Nader Shah, once again Mohammad Hasan Khan, together with his Yamut allies led by Bekenj Khan and Goklen, attacked Astarabad. This time, the attack was neutralized by the new Afsharid king, Adel Shah (r. 1747–1748). Following this operation, Mohammad Hasan Khan's five-year-old son and the future shah of Qajar Iran, Agha Mohammad Khan, was captured in Astarabad, brought to the Afsharid capital city of Mashhad, and turned into a eunuch. Adel Shah, seemingly, initially thought of killing the boy, but proceeded with his castration instead.
In 1748, following the death of Adel Shah, Mohammad Hasan Khan planned expanding his territory. By 1751, he was in power over Gorgan, Mazandaran, and Gilan.
In 1751, Mohammad Hasan Khan planned an attack on Karim Khan Zand (r. 1751–1779) who besieged Kermanshah. While on the way toward Kermanshah, Mohammad Hasan Khan received the news of Karim Khan's success in seizing Kermanshah. Then, he retreated to Astarabad, while being followed by Karim Khan all the way to the city. Astarabad was subsequently surrounded by the Karim Khan's forces. To counter the siege of Astarabad, Mohammad Hasan Khan, with the help of the Yamut allies, ambushed the Zand forces, forced them to move to Tehran, and captured the Safavid puppet king, Ismail III. Back in Mazandaran and Gilan, Mohammad Hasan Khan restored order after the local rulers left their positions once they saw his chance of holding on to power in decline.
In 1755, Mohammad Hasan Khan fought and defeated a regiment of the Abdali Afghans near Sabzevar.
In 1756, Mohammad Hasan Khan defeated a small Zand force at the Battle of Kazzaz and fought Karim Khan's forces at Gulnabad, defeated them, and captured the city of Isfahan, where he minted gold coins in his name.
In 1757, he marched toward Urmia, which was Azerbaijan's capital and ruled by Azad Khan Afghan, who had launched an unsuccessful attack on Mohammad Hasan Khan's base in Gilan. He forced Azad Khan to escape to the Ottoman empire and captured Tabriz and Urmia without a fight. According to Adib-ol-Shoara, Mohammad Hasan Khan was welcomed by the inhabitants of Tabriz. There, he minted gold coins in his name and installed Agha Mohammad Khan as his deputy.
In 1758, Mohammad Hasan Khan besieged the stronghold of Karim Khan, the city of Shiraz, to force the Zand ruler to surrender and finally end the Zand rule over Iran. However, due to lack of food and supply outside the city, the situation gradually turned against him. Meanwhile, Karim Khan remained securely inside the city fortifications and did not surrender. Subsequently, in July 1758, Mohammad Hasan Khan moved back to Mazandaran, while Karim Khan's general, Sheikh Ali Khan Zand, followed him all the way. The final blow came from the disobedience of his subordinates, in particular, Mohammad Hossein Khan Devellu Qajar, which resulted in his defeat at the Battle of Astarabad. On 13 February 1759, while escaping to seek refuge in Astarabad, Mohammad Hasan Khan was killed by Mohammad Khan Savadkuh in Mazandaran.