In 1885, Wadi Halfa entered a period of turmoil after falling under the Mahdist War regime. Conflicts frequently broke out on the border, and in 1889, Abd al-Rahman al-Mahdi's army entered the town on the way to the Battle of Tushki. Wadi Halfa was briefly the headquarters of the British-led Egyptian and British forces under Kitchener seeking to defeat the forces of Muhammad Ahmad, the Mahdi proclaimed by his disciples, from 1881 to 1885. The rail line up the Nile was originally begun in 1897 to support this military buildup; it extends, via Atbara, to El Obeid and beyond into southern and western Sudan.