From his announcement of the Mahdiyya in June 1881 until the fall of Khartoum in January 1885, Muhammad Ahmad led a successful military campaign against the Turco-Egyptian government of the Sudan, known as the Turkiyah. Muhammad Ahmad died on 22 June 1885, a mere six months after the conquest of Khartoum. After a power struggle amongst his deputies, Abdallahi ibn Muhammad, with the help primarily of the Baggara of western Sudan, overcame the opposition of the others and emerged as the unchallenged leader of the Mahdiyah. After consolidating his power, Abdallahi ibn Muhammad assumed the title of ''Khalifa'' (successor) of the Mahdi, instituted an administration, and appointed Ansar (who were usually Baggara) as emirs over each of the several provinces.