Sher Ali Khan was Amir of Afghanistan from 1863 to 1866 and from 1868 until his death in 1879. He was one of the sons of Dost Mohammed Khan, founder of the Barakzai dynasty in Afghanistan.
Mohammad Yaqub Khan was Emir of Afghanistan from February 21 to October 12, 1879. He was a Pashtun and the son of the previous ruler, Sher Ali Khan.
Gandamak, Afghanistan in May 1879. Seated from left to right: British officers Mr. Jenkyns and Major Cavagnari, Amir Yakub Khan (in the centre), General Daoud Shah and Habibullah Mustafi.