The Mahdists revolt in the Sudan was successful due to a combination of factors. One of the main reasons was the widespread support they enjoyed from the local population, who believed in their superior faith. Additionally, the Egyptian army that was sent to suppress the revolt was poorly trained and ill-equipped. Finally, General Gordon, who was appointed to lead the British relief expedition, was unable to effectively defend Khartoum and was seen as an incompetent commander. All these factors together contributed to the success of the Mahdists revolt in the Sudan.