Mahomet Ahmed, the Mahdi, was a native of the province of Dongola. His father was Abdullahi, by trade a carpenter. In 1852 this man left and went to Shendy, a town on the Nile south of Berber. As a boy, Mahomet Ahmed was apprenticed to his uncle, a boatman, residing at Shakabeh, an island opposite Sennar. Having one day received a beating from his uncle, he ran away to Khartoum and joined the free school of a fakir, the head of a sect of dervishes, who lived at a village close by. This school was attached to the tomb of the patron saint of Khartoum, who was greatly revered by the inhabitants of that town and district. Here Mahomet Ahmed remained for some time, studying religion, but did not make much progress in the more worldly accomplishments of reading and writing. After a time he left and went to Berber, where he joined another free school. This school was also attached to a shrine much venerated by the natives. Here Mahomet Ahmed remained six months, completing his religious education. Thence he went to a village south of Kana, on the White Nile, where, in 1870, he became a disciple of another fakir, who subsequently ordained him fakir, and he then left to take up his home in the island of Abba, near Kana. Here he began by making a subterranean excavation into which he made a practice of retiring to repeat for hours one of the many names of the Deity, and accompanied this by fasting, incense-burning, and prayers. His fame and sanctity by degrees spread far and wide, and Mahomet Ahmed became wealthy, collected disciples, and married several wives, all of whom he was careful to select from among the daughters of the most influential Baggara sheikhs and other notables. To keep within the lawful number (four) he was in the habit of divorcing the surplus and taking them on again according to his fancy. About the end of May, 1881, he began to write to his brother fakirs, and to teach that he was the "Mahdi" foretold by Mahomet, and that he had a Divine mission to reform Islam, to establish a universal equality, a universal law, a universal religion, and a community of goods; also that all who did not believe in him would be destroyed, were they Christian, Mahommedan, or Pagan. Among others he wrote to Mahomet Saleh, a very learned and influential fakir of Dongola, directing him to collect his dervishes, followers, and friends, and to join him at Abba. This sheikh, instead of complying with his request, informed the Government, declaring the man to be mad.
In the beginning of Ramadan, 1298 (2nd July, 1881), the Governor-General of the Soudan, Reouf Pasha, heard that on the island of Abba, on the White Nile, in the Fashoda district, there was a certain religious sheikh, Mahomet Ahmed, who had publicly declared that he was the Mahdi; further, that this sheikh had been for some time very busy in extending his influence among the tribes by means of emissaries and letters. Reouf became somewhat alarmed, fearing the consequences which might result from such teaching among the credulous and superstitious people of the Soudan, and sent a party of notables and learned men, with a Government official and a small military escort, to interview Mahomet Ahmed, and request him to give up agitating and come to Khartoum. Mahomet declined to do either, and boldly declared that he was the Mahdi, by which name he will be hereinafter referred to.
On the failure of his first attempt, the Pasha, on the 11th August, despatched by steamer an expedition of 200 regular soldiers, with orders to use force, if necessary, in bringing the pretender to reason. At 3 a.m. on the following day the party reached Abba, where a discussion arose between two of the officers, each of whom claimed to be in command. Before the difficulty could be settled, the Mahdi and his followers turned out, some 4,000 strong, attacked the force and drove them back to the river, killing no less than 120 of their number. The rest of the expedition succeeded in reaching their steamer, and returned to Khartoum. After this further failure, Reouf Pasha organized a new expedition. The officer in command was Mahomet Pasha Said, from the regular army. Not finding the Mahdi at Abba, the Pasha followed him leisurely on to Talka. On arriving there it was discovered that the Mahdi had retreated into the hills of Jeb el Nuba, and the Pasha, deeming it useless to follow him further, withdrew to Kordofan, and the enterprise was abandoned.
In December, 1881, the Governor of Fashoda heard that the chief of the Tajalle (a district of the Jeb el Nuba), who was friendly to the Government, had driven out the Mahdi, and that the latter had taken refuge in the mountains of Gheddeer. The Governor decided to follow up this advantage and attack the Mahdi in his new position. Taking with him a force of 400 men, the Governor left Fashoda on the 4th December. On the morning of the 9th he reached Gheddeer after marching all night. The troops, fatigued by the march, following their usual custom, on nearing the wells broke their ranks and rushed to the water. At this moment they were attacked by the Mahdists and nearly all killed, including the Governor.
The Mahdi, seeing that he could defy the Government with impunity, was encouraged to believe in his mission, and the various sects of dervishes throughout the country began to think that Mahomet Ahmed might really be the true Mahdi. The Mahdi himself, though he did not venture to leave the shelter of the Gheddeer hills, occupied himself in fomenting the rebellion by his emissaries and adherents.
On the 4th March, 1882, Abdel Kader Pasha was appointed Governor-General of the Soudan, in place of Reouf Pasha.
During the interval between the departure of Reouf and the arrival of his successor, Giegler Pasha, a German, acted as the latter's deputy. This official formed a new expedition of 3,500 men, starting from three points, namely, from Khartoum, Kordofan, and Sennar. By the 22nd of April the entire force, Nubir Yussef Pasha, a Berberine, being in command, was concentrated at Kaha, for the purpose of attacking Gheddeer, where, as was above stated, the Mahdi had taken refuge.
In consequence of these movements, the garrisons all over the country were left very weak, and at Sennar there were but 100 soldiers remaining. Amr-el-Makashef, a prominent agent of the Mahdi, collecting a force of disaffected natives and dervishes, attacked and burnt a part of the town, killed most of the small garrison, and besieged the remainder in the Government House. Fortunately, Saleh Aga, an irregular officer sent by Giegler Pasha, arrived on the 13th with 300 men, and after a hard fight defeated Amr-el-Makashef and compelled him to raise the siege.
On the 15th of April Giegler Pasha started south from Khartoum by steamer with 300 irregulars. On reaching the neighbourhood of Mesalamieh, on the Blue Nile, he learned that a notable sheikh, called Ahmed Saha, was raising men for the Mahdi at a village close by. He sent a detachment of fifty of his men to attack the place, with the result that the expedition was repulsed and most of the men killed. Giegler then telegraphed for reinforcements of six companies of regulars from Galabat, on the Abyssinian frontier, and while awaiting their arrival, having received some small reinforcements, renewed his attack on Ahmed Saha, but was once more defeated, with a further loss of 200 men.
On the 5th of May, however, Giegler was joined by the six companies of regulars from Galabat, and no less than 2,500 of the great Shukuri tribe, headed by their emir, Awad-el-Kerim, and a number of chiefs, clad in coats of mail and steel helmets, as in the days of the Crusaders, and riding thoroughbred Arab horses. This was a grateful sight for Giegler, as the emir was a personal friend of his own, and had, moreover, taken sides with the Government. Encouraged by this accession of strength, the Pasha renewed the attack on the 6th—this time with success—and Ahmed Saha was defeated with great slaughter.