Muhammad Ali Dinar (; 6 November 1916), known more generally as Ali Dinar, was the last sultan of Darfur and ruler from the Keira dynasty.
Ali Dinar ascended to the throne of Darfur in 1891, after his cousin, the 'shadow sultan' Abà « l-KhayrÃÂt, was killed by a band of rebellious slaves. The incident surrounding Abà « l-KhayrÃÂt's death is obscure, but some sources allege that Ali Dinar had incited his death; Ali Dinar himself denied the allegation. This period of Ali Dinar's reign was troublesome, with him ultimately being urged by his followers to enter negotiations with the Mahdists in al-FÃÂshir, an act which brought about raids upon him by the MasÃÂlët and his being despoiled by Bakhët Abà « Risha of DÃÂr SilÃÂ.
Ultimately, Ali Dinar surrendered in Mahdist-occupied al-FÃÂshir on October 13, 1891. Initially being favorably received, Ali Dinar was later imprisoned for drinking wine. He was saved by the intercession of the amër Maḥmà «d w. Aḥmad, Mahdist governor of Darfur, subsequently joining the latter's entourage. Accompanying Maḥmà «d, Ali traveled to Omdurman, the Mahdist capital, where he met the Khalëfa ÿAbdallÃÂhi. In June 1894, Ali returned to the Darfur, presumably in preparation for Maḥmà «d w. Aḥmad's campaign of 1895. This return was short lived, however, as suspicions that Ali intended to rebel against the Mahdists caused him to be sent back to Omdurman in January 1895. Ali Dinar's time in Omdurman is obscure, but it is alleged that he was made a mulÃÂzim [attendant] to the Khalëfa or his son, ÿUthmÃÂn, and came to be an acquaintance of Rudolf Slatin. Later, Ali Dinar entered the service of amër IbrÃÂhëm al-Khalël, Mahdist commander of jihÃÂdiyya, accompanying him in 1896 to fight in the Nuba Mountains.
As the Battle of Omdurman approached, Ali Dinar began planning his flight back to Darfur. Just before or during the battle, he put his plan into effect, bringing with him many notables of the old sultanate. Rendering hapless the Mahdist garrison at al-FÃÂshir and rival contenders to the throne, Ali Dinar began to rapidly reassert the authority of the Darfur Sultanate. He was especially focused on establishing a functioning judiciary system as well as rooting out Mahdist influence in the region. Ali Dinar also set about establishing diplomatic connections to various of his neighbors such as the SÃÂnà «siyya, Wadai, DÃÂr SilÃÂ, DÃÂr al-Kà «të, etc.
In 1915 Ali Dinar declared his support to the Ottoman Empire in the First World War, which led the British government to dispatch the invasion of Darfur, in which he was killed in action, after which his sultanate was incorporated into Anglo-Egyptian Sudan.