The treaty of Gandamak was signed by the British and Emir of Afghanisthan Muhammed Yaqub Khan on 26 May 1879 and Sir Louis Cavagnari became the British resident in Kabul to oversee all the forgein affairs in Afghanisthan. The peace didn’t last, four months later Mohammed Ayub Khan abdicated his brother the Emir and ceased power, he massacered the British resident and his envoy, invoking the second Anglo-Afghan war. Muhammed Ayub Khan was helped by a tribal cheiftein of Kyber Pushtunkhwa which was part of old Gandhara kingdom, Mahmud Zaman Durrani was a deposed successor of Durrani kigdom established by Ahammed Shah Durrani in 1747, who was a personnel attendant of Nadir Shah the treacherous monarch of Iran who invaded the Mughal empire, looted a hefty bounty so that he could announce a tax

