The Anglo-Egyptian conquest of Sudan in 1896–1899 was a reconquest of territory lost by the Khedives of Egypt in 1884–1885 during the Mahdist War. The British had failed to organise an orderly withdrawal of the Egyptian Army from Sudan, and the defeat at Khartoum left only Suakin and Equatoria under Egyptian control after 1885. The conquest of 1896–1899 defeated and destroyed the Mahdist State and re-established Anglo-Egyptian rule, which remained until Sudan became independent in 1956.