Battle of the Pyramids and the French capture of Cairo
Napoleon marched south along the Nile from Alexandria and on 21 July 1798 met Murad Bey's Mamluk cavalry at Imbaba, opposite Giza. The French infantry in square formation broke the cavalry charges; the Mamluk army dispersed and Cairo surrendered without resistance two days later. Murad Bey withdrew to Upper Egypt and Ibrahim Bey to Syria. The French set up a divan in Cairo and tried to run the administration through the ulema; two great Cairo uprisings broke out in October 1798 and March 1800.