Troops loyal to The Mahdi conquer Khartoum, killing the Governor-General Charles George Gordon.

The Battle of Khartoum, Siege of Khartoum or Fall of Khartoum was the conquest of Egyptian-held Khartoum by the Mahdist forces led by Muhammad Ahmad of Sudan. Egypt had held the city for some time, but the siege the Mahdists engineered and carried out from 13 March 1884 to 26 January 1885 was enough to wrest control away from the Egyptian administration.

After a ten-month siege, when the Mahdists finally broke into the city, they killed the entire garrison of Egyptian soldiers, along with 4,000 mostly male Sudanese civilians, and enslaved many women and children. According to some accounts, they killed and beheaded British General Charles George Gordon, delivering his head to the Mahdi.

Muhammad Ahmad bin Abd Allah (Arabic: محمد أحمد ابن عبد الله; 12 August 1844 – 22 June 1885) was a Sufi religious leader of the Samaniyya order in Sudan who, as a youth, studied Sunni Islam. In 1881, he claimed to be the Mahdi. He led a successful war against Ottoman-Egyptian military rule in Sudan and achieved a remarkable victory over the British, in the Siege of Khartoum. He created a vast Islamic state extending from the Red Sea to Central Africa, and founded a movement that remained influential in Sudan a century later.From his announcement of the Mahdiyya in June 1881 until 1898, the Mahdi's growing number of supporters, the Ansars, established many of its theological and political doctrines. After Muhammad Ahmad's unexpected death on 22 June 1885, his chief deputy, Abdallahi ibn Muhammad took over the administration of the nascent Mahdist state.

Following Ahmad's death, Abdallahi ruled as Khalifa but his autocratic rule, as well as directly applied British military force, destroyed the Mahdi state following the Anglo-Egyptian conquest of Sudan in 1899. Despite that, the Mahdi remains a respected figure in the history of Sudan. In the late 20th century, one of his direct descendants, Sadiq al-Mahdi, twice served as prime minister of Sudan (1966–67 and 1986–89). He pursued democratizing policies.