executed. After Mustafa Khan's death, Mahmud Shah and Kamran Shah immediately started fighting each other for control. Mahmud fled to Khwaja Ansari's tomb at Gazurgah, and then 6 months later fled across the Murghab to seek the aid of the Jamshidi tribes. Kamran Shah needed help, so he requested the aid of Iran. In July 1826 Hasan Ali Mirza Qajar sent 6,000 or 10,000 men with 4 guns to the aid of Kamran Shah. When they reached Herat, they combined with 2,000 of Kamran's troops and marched towards the Murghab. However, spies leaked Kamran's plans to Mahmud, who set up an ambush. The Aimaqs and Uzbeks completely routed the Iranians, and Mahmud marched onward to Herat. However, Mahmud refused to storm the citadel, instead camping outside the citadel, meaning that "all the benefit of the Badghis victory quickly dissipated" and his siege of Herat failed. Mahmud fled to the Hazaras of Qala-e Naw but Kamran sent an army after him. The Herati army starved the Hazaras of supplied and forced into handing over Mahmud. However Mahmud fled to Lash rather than being taken by Kamran. In 1827, Kamran took pity on Mahmud and invited him back to Herat. In 1828-29 Ata Mohammad Khan Alakozai died. His son Sardar Din Mohammad Khan Alakozai then succeeded him as vazir. However, due to the courtiers being against this appointment, he was forced to give up the viziership to his cousin, Yar Mohammad Khan Alakozai. The first act Yar Mohammad Khan did in 1829 was to depose Mahmud Shah, who died shortly after. Kamran then became the ruler. See also Durrani Empire Shah Shuja Durrani Zaman Shah Durrani Timur Shah Durrani Ahmad Shah Durrani Battle of Nimla (1809) References External links The British Library – Chronology: from the emergence of the Afghan Kingdom to the Mission of Mountstuart Elphistone, 1747–1809 1769 births 1829 deaths 19th-century Afghan monarchs Emirs of Afghanistan Mahmud Shah Pashtun people 19th-century Afghan politicians 19th-century monarchs in Asia