# Treaty of Gandamak and the Second Anglo-Afghan War (26 May 1879)

URL: https://allhistories.com/pakistan/timeline/1879-treaty-of-gandamak-and-the-second-anglo-afghan-war
Location: Gandamak, Afghanistan (affecting Quetta, Pishin and Sibi)
Themes: Great Game, Frontier

The Second Anglo-Afghan War began in November 1878 when a British Indian force invaded Afghanistan after the ruler Sher Ali refused to accept a British mission. On 26 May 1879 his son Yaqub Khan signed the Treaty of Gandamak. Britain gained control of Afghan foreign affairs, the Khyber and Michni passes and the districts of Quetta, Pishin and Sibi. Britain feared growing Russian influence after Sher Ali received a Russian mission in July 1878. The war was part of the Great Game. The treaty did not end the fighting: on 3 September 1879 the British envoy, Louis Cavagnari, was killed in Kabul, and British forces reoccupied the capital. In July 1880 the Afghan leader Ayub Khan defeated a British force at Maiwand, but he was beaten outside Kandahar in September. Abdur Rahman Khan was recognised as Amir. Britain kept Quetta and the frontier passes, bringing Balochistan's strategic towns under British control and preparing the way for the 1893 Durand Line. At this point in the timeline (1879), the territory of Pakistan lay within British India, governed by Viceroy Robert Bulwer-Lytton, 1st Earl of Lytton (12 April 1876 – 8 June 1880). Other contemporary rulers included Queen Victoria, monarch of the United Kingdom (1 November 1858 – 22 January 1901). The main location of this event lies outside present-day Pakistan.

## Why it matters
The war placed Quetta and the Khyber under British control, fixing the north-western frontier that Pakistan later inherited.

Ruler at the Time: [Robert Bulwer-Lytton, 1st Earl of Lytton](https://allhistories.com/pakistan/rulers/robert-bulwer-lytton-1st-earl-of-lytton)

## Sources
- [Wikipedia — Second Anglo-Afghan War](https://en.wikipedia.org/wiki/Second_Anglo-Afghan_War)
- [Encyclopaedia Britannica — Treaty of Gandamak](https://www.britannica.com/topic/Treaty-of-Gandamak)

