The Battle of Maiwand (Dari: , Pashto: ), fought on 27 July 1880, was one of the principal battles of the Second Anglo-Afghan War. Under the leadership of Ayub Khan, the Afghan forces defeated a much smaller British force consisting of two brigades of British and Indian troops under Brigadier-General George Burrows; albeit at a high price: between 2,050 and 2,750 Afghan warriors were killed, and probably about 1,500 wounded. British and Indian forces suffered 969 soldiers killed and 177 wounded.
The Second Anglo-Afghan War (Dari: جنگ دوم افغان و انگلیس, Pashto: د افغان-انګرېز دويمه جګړه) was a military conflict fought between the British Raj and the Emirate of Afghanistan from 1878 to 1880, when the latter was ruled by Sher Ali Khan of the Barakzai dynasty, the son of former Emir Dost Mohammad Khan. The war was part of the Great Game between the British and Russian empires.
The war was split into two campaigns – the first began in November 1878 with the British invasion of Afghanistan from India. The British were quickly victorious and forced the Amir – Sher Ali Khan to flee. Ali's successor Mohammad Yaqub Khan immediately sued for peace and the Treaty of Gandamak was then signed on 26 May 1879. The British sent an envoy and mission led by Sir Louis Cavagnari to Kabul, but on 3 September this mission was massacred and the conflict was reignited by Ayub Khan which led to the abdication of his brother Yaqub.The second campaign ended in September 1880 when the British decisively defeated Ayub Khan outside Kandahar. A new Amir – Abdur Rahman Khan selected by the British, ratified and confirmed the Gandamak treaty once more. When the British and Indian soldiers had withdrawn, the Afghans agreed to let the British attain all of their geopolitical objectives, as well as create a buffer between the British Raj and the Russian Empire.