Britain's involvement in Sudan was a consequence of its support for the Khedive of Egypt following the repression of Urabi Pasha's revolt in 1882.
Despite Egypt still being nominally part of the Ottoman Empire, the Khedive's rule was dependent on direct British support, given to ensure the security of the Suez Canal and the elimination of the Sudanese slave trade.
However, the British government under Prime Minister William Ewart Gladstone sought to stay out of affairs in Egyptian-governed Sudan, that was threatened by an uprising led by the Mahdi, Muhammad Ahmad, who declared a Jihad, against the ‘Turks’, represented by the Egyptian troops.
The greater part of the infantry was formed from Egyptian Gendarmerie Battalions who had enrolled on the condition they would serve only for civil service in Egypt.
After returning to Suakin, Baker tried to organize the defence of the city, but the Egyptian troops had grown distrustful of the British officers, and refused to obey.
In Britain, Baker's defeat incensed the imperialist faction, represented by Lord Wolseley, who demanded the intervention of British troops.
The British, forming into a square, circled the Mahdist entrenchments to outflank them, under cover of dense rifle and cannon fire.
The Mahdists hid in trenches to avoid incoming British rifle and artillery rounds, then rushed out in small groups of twenty to thirty warriors[3] instead of the massive attack that was expected.
During the battle, Captain Arthur Wilson of HMS Hecla joined the right half-battery, Naval Brigade, in place of a lieutenant who was mortally wounded.
The Mahdists suffered heavily from British firepower, with estimated 2,000 of them killed (though only 825 bodies were actually counted on the field of battle).
[2] Upon Graham's return to Britain, he received the thanks of parliament and was made a Lieutenant General for distinguished service in the field.