The Mahdist War (also called the Mahdist Revolt) was a colonial war of the late 19th century. It was fought between the Mahdist Sudanese and the Egyptian and later British forces. It has also been called the Anglo-Sudan War or the Sudanese Mahdist Revolt. The British have called their part in the conflict the Sudan Campaign. It was vividly described by Winston Churchill (who took part in its concluding stages) in The River War.
Following the invasion by Muhammed Ali in 1819, Sudan was governed by an Egyptian administration. This colonial system was resented by the Sudanese people, because of the heavy taxes it imposed and because of the bloody start of the Turkish-Egyptian rule in Sudan.
Throughout the period of Turco-Egyptian rule, many segments of the Sudanese population suffered extreme hardship due to the system of taxation imposed by the central government. Under this system, a flat tax was imposed on farmers and small traders and collected by government-appointed tax collectors from the Sha'iqiyya tribe of northern Sudan. In bad years, and especially during times of drought and famine, farmers were unable to pay the high taxes. Fearing the brutal and unjust methods of the Sha'iqiyya, many farmers fled their villages in the fertile Nile Valley to the remote areas of Kordofan and Darfur. These migrants, known as black "Jallaba" after their loose-fitting style of dress, began to function as small traders and middlemen for the foreign trading companies that had established themselves in the cities and towns of central Sudan.