Abdallahi ibn Muhammad
Six months after the capture of Khartoum, the Mahdi died of typhus (22 June 1885). The task of establishing and maintaining a government fell to his deputies—three caliphs chosen by the Mahdi in emulation of the Prophet Muhammad. Rivalry among the three, each supported by people of his native region, continued until 1891, when Abdallahi ibn Muhammad, with the help primarily of the Baqqara Arabs, overcame the opposition of the others and emerged as unchallenged leader of the Mahdiyah. Abdallahi—called the Khalifa (successor)—purged the Mahdiyah of members of the Mahdi's family and many of his early religious disciples.