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