Ghazi Mohammad Ayub Khan ( ; Dari: ) (1857 – 7 April 1914) also known as The Victor of Maiwand or The Afghan Prince Charlie was, for a while, the governor of Herat Province in the Emirate of Afghanistan. He was Emir of Afghanistan from 12 October, 1879 to 31 May, 1880. He also led the Afghan troops during the Second Anglo-Afghan War and defeated the British Indian Army at the Battle of Maiwand. Following his defeat at the Battle of Kandahar, Ayub Khan was deposed and exiled to British India. However, Ayub Khan fled to Persia (now Iran). After negotiations in 1888 with Sir Mortimer Durand, the ambassador at Tehran, Ayub Khan became a pensioner of the British Raj and traveled to British India in 1888, where he lived until his death in 1914 in Lahore, Punjab. He was buried in Peshawar and had eleven wives, fifteen sons, and ten daughters. Two of his grandsons, Sardar Hissam Mahmud el-Effendi and Sardar Muhammad Ismail Khan, served as brigadiers in the Pakistan Army. In Afghanistan, he is remembered as the "National Hero of Afghanistan." Early life His father was Sher Ali Khan and his mother was the daughter of an influential Mohmand chief of Lalpura, Saadat Khan. His brother was Mohammad Yaqub Khan. Second Anglo-Afghan war During the second Anglo-Afghan war, Afghans under the command of Ayub Khan clashed with Anglo-Indian troops at Maiwand on 27 July 1880 and emerged victorious. The Afghan victory at Maiwand was strategically significant for Afghanistan as it saved the country from getting dismembered by Britain, and saved Qandahar from a permanent British occupation. The defeat at Maiwand also compelled the British to withdraw from Qandahar. After the battle, the Afghans buried the dead Anglo-Indian soldiers and erected a monument in their honor and memory. Ayub Khan later went on to besiege the better equipped British forces at Kandahar but did not succeed. On 1 September, 1880, he was defeated and routed by forces led by General Frederick Roberts at the Battle of Kandahar, which saw the end of the Second Anglo-Afghan War. After second Anglo-Afghan war A year later, Ayub again tried to take Kandahar, this time from Amir Abdur Rahman Khan, but again failed. "Ayub Khan had an opportunity of realizing his strength as an independent ruler in Afghanistan. Certain tribes in Kushk district having revolted, he desired to send a force from Herat