Sher Ali Khan
From 1869 to 1872, Mir Mahmud Shar was able to gain control of the Khanate of Badakhshan with the help of Afghanistan's new ruler, Amir Sher Ali Khan, and by 1873 Afghanistan governed Badakhshan.