After defeating a Mahdist force in the Battle of Atbara in April 1898, the Anglo-Egyptians reached Omdurman, the Mahdist capital, in September. The bulk of the Mahdist army attacked, but was cut down by British machine-guns and rifle fire.