When Muhammed Ahmad died on 22 June 1885, in theory the Kalifas were jointly responsible for ruling the "Mahdiyah", as the Mahdist state of Sudan was known.
In 1886 Khalifa Muhammad Sherif led a coup attempt by the Ashraf, kinsmen of the Mahdi, but Abdullahi defeated the challenge without difficulty.