Mohammad Ayub Khan

محمد أيوب خان

– †

† Hijri date derived by computation from the Gregorian/Julian date; it may differ from the transmitted date by a day or two.

Kabul

Barakzai prince, briefly Emir of Afghanistan (12 October 1879 – 31 May 1880), remembered as the Victor of Maiwand for defeating a British-Indian army at the Battle of Maiwand on 27 July 1880 during the Second Anglo-Afghan War. Defeated at Kandahar that September, he ended his life as a British pensioner at Lahore, where he died in 1914.

Depth

At a glance

Roles
Ruler
Region
Persia & Central Asia
Review

Life in time

1800182518501875190019251950
The Colonial Era · The Gunpowder Empires · The Modern Era Contemporaries: Abadi Bano Begum · Abd al-Hamid al-Zahrawi · Abd al-Razzaq al-Bitar · Ahmad al-Hamlawi · Ahmed Raza Khan Barelvi

Place in the story

    Unknown (unknown)

    Roles are dated and sourced; the museum describes the act and attributes the judgement.

    Summary

    Ghazi Mohammad Ayub Khan Barakzai (1857 – 7 April 1914) was a Barakzai prince who was briefly Emir of Afghanistan, from 12 October 1879 to 31 May 1880. He is remembered in Afghanistan as a national hero, the Victor of Maiwand, for his defeat of a British-Indian army at the Battle of Maiwand during the Second Anglo-Afghan War. 1

    He is a different person from Ayub Khan, the later president of Pakistan, and he was the son of the Emir Sher Ali Khan — and therefore the grandson, not the son, of Dost Mohammad Khan, as both articles' accounts of his parentage show. 1 2

    Early life

    He was born at Kabul in 1857, a son of Sher Ali Khan and of Qamar Jan, daughter of the Mohmand chief Sa'adat Khan of Lalpura; his full brother was Mohammad Yaqub Khan, who preceded him on the throne. He served as governor of Herat before his brief emirate. 1

    Maiwand and the loss of the throne

    When his brother Yaqub Khan's concessions to Britain brought on his deposition, Ayub Khan took the throne in October 1879 and led the Afghan forces in the war. On 27 July 1880 his army overwhelmed a British-Indian brigade at Maiwand, one of the worst defeats of a British force in the century; the Afghan folk heroine Malalai is said to have rallied the fighters there, a connection of shared battle presence which this museum records in prose only. On 1 September 1880 General Roberts defeated him at Kandahar, and his emirate was over. 1

    He briefly held Herat and tried again for Kandahar in 1881, was defeated by the new emir Abdur Rahman Khan, and fled to Persia. 1 2

    Last years

    After negotiations in 1888 he became a pensioner of the British Raj and settled at Lahore, where he lived until his death on 7 April 1914. He was buried at Peshawar, in the Durrani graveyard near the shrine of Sheikh Habib; the Arabic article gives Peshawar as his place of death, and the difference is recorded in the data file. He had eleven wives, fifteen sons and ten daughters. 1 2

    Faith record

    No article in the museum's languages names a religion for him: neither the English nor the Arabic article carries a religion field, and no text names a school. The only structured attestation seen anywhere is the Russian article's infobox, which gives Islam of the Sunni tendency. A single structured value is one attestation family, so under the museum's two-source rule the record stays unknown, with that attestation preserved in the data file. 1 2

    Sources

    • The defined source entities cited above, recorded in data/source/.
    • Revisions of this article must be dated, and must name the source that changed each fact.

    Connections

    Explore the connections

    Born in
    Kabul
    Child of
    Sher Ali Khan

    People and things also explored

    Mohammad Yaqub Khan· Sher Ali Khan· Kabul· Kabul's Opening and its King's Islam under al-Ma'mun· Kabul's Breach and Yazid ibn Ziyad's Death· Kabul Shah's Submission to al-Ma'mun· Ibn Samura's March to Kabul· Abdullah Abdullah

    Sources

    1. Mohammad Ayub Khan — English Wikipedia
    2. Mohammad Ayub Khan — Arabic Wikipedia
    Cite this page

    islam.museum contributors. “Mohammad Ayub Khan”. islam.museum, https://islam.museum/en/person/mohammad-ayub-khan/. CC BY-SA 4.0. Last updated 2026-10-27.

    Improve this page on GitHub · Report an error · JSON

    Wing

    People

    Prophets, companions, scholars, rulers, scientists, poets, travelers: women and men who shaped the story.
    Related

    Mohammad Yaqub Khan

    Emir of Afghanistan for a few months of 1879 (21 February – 12 October), a son of Emir Sher Ali Khan and a grandson of Dost Mohammad Khan. Appointed governor of Herat as a young man, he rebelled against his father and was imprisoned; he succeeded him during the Second Anglo-Afghan War and signed the Treaty of Gandamak, which gave Britain control of Afghan foreign relations; after the killing of the British envoy Cavagnari he abdicated, was exiled to India, and remained there until his death in 1923.