Mohammad Yaqub Khan

The Second Anglo-Afghan War erupted in 1878, leading Sher Ali Khan to flee the capital of Afghanistan, and eventually die in February 1879 in the north of the country.

As Sher Ali's successor, Yaqub signed the Treaty of Gandamak with Britain in May 1879, relinquishing sole control of Afghanistan foreign affairs to the British Empire.

One of the key figures in the negotiations was Pierre Louis Napoleon Cavagnari, who served with the East India Army in the 1st Bengal Fusiliers and then transferred into political service, becoming Deputy Commissioner at Peshawar, and was appointed as envoy by the Viceroy Lord Lytton in the 1878 mission to Kabul which the Afghans refused to let proceed.

The situation in Kabul was tense and eventually some Afghan troops who had not been paid by the Amir rebelled and attacked the Residency, killing Cavagnari and his mission in September 1879.

The war was far from over despite the treaty and British troops were recalled over the mountains to occupy Kabul, secure it and launch punitive action against the Afghans.

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.
Amir Yakub Khan's Mustanfi Habibulah Khan