Ghazi Mohammad Ayub Khan (Pashto; Persian: محمد ایوب خان, 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 briefly the 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 United Kingdom's ambassador at Tehran, Ayub Khan became a pensioner of the British Raj and traveled to British India in 1888, where he lived in Lahore, Punjab, until his death in 1914. 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."