 He fought the Battle of Shubra Khit against the Mamluks, Egypt's ruling military caste.This helped the French practise their defensive tactic for the Battle of the Pyramids, fought on 21 July, about from the pyramids.General Bonaparte's forces of 25,000 roughly equalled those of the Mamluks' Egyptian cavalry.