![cover image](https://wikiwandv2-19431.kxcdn.com/_next/image?url=https://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Mohammad_Yaqub_Khan_with_British_officers_in_May_of_1879.jpg/640px-Mohammad_Yaqub_Khan_with_British_officers_in_May_of_1879.jpg&w=640&q=50)
Treaty of Gandamak
1879 treaty ending the first phase of the Second Anglo-Afghan War / From Wikipedia, the free encyclopedia
The Treaty of Gandamak (Dari: معاهده گندمک, Pashto: د گندمک تړون) officially ended the first phase of the Second Anglo-Afghan War. The Afghan emir Mohammad Yaqub Khan ceded various frontier areas as well as Afghanistan's control of its foreign affairs to the British Raj.
![Thumb image](http://upload.wikimedia.org/wikipedia/commons/thumb/6/63/Mohammad_Yaqub_Khan_with_British_officers_in_May_of_1879.jpg/640px-Mohammad_Yaqub_Khan_with_British_officers_in_May_of_1879.jpg)
It was signed on 26 May 1879 by King Mohammad Yaqub Khan of Afghanistan and Sir Louis Cavagnari of the British Government of India at a British army camp near the village of Gandamak, about 70 miles (110 km) east of Kabul. The treaty was ratified by Lord Edward Robert Bulwer-Lytton, Viceroy of India, on 30 May 1879.
Most historical writings consider the Treaty of Gandamak as the prelude to the second phase of the Second Anglo-Afghan War, 1879–1880. As result of the British victory at the Battle of Kandahar in 1880 the treaty was reaffirmed and the British appointed Abdur Rahman, a British opponent, as Emir of Afghanistan.