Question: who ruled egypt at the time of the french invasion
Answer: Egyptian Campaign Part of the Mediterranean campaign of 1798 Battle of the Pyramids Date 1 July 1798 -- 2 September 1801 ( 3 years , 2 months and 1 day ) Location Egypt , Levant Result Ottoman - British victory French conquest of Egypt and end of Mameluke rule Failure of French expedition to Syria Capitulation of French administration in Egypt Belligerents Ottoman Empire Mamluks Beylik of Tunis Regency of Algiers Great Britain France Commanders and leaders Selim III Kör Yusuf Ziyaüddin Pasha Mustafa Pasha Jezzar Pasha Murad Bey Ibrahim Bey William Sidney Smith Ralph Abercrombie ( DOW ) Horatio Nelson Napoleon Bonaparte Jean Baptiste Kléber † Thomas - Alexandre Dumas Jacques - Francois Menou Strength Ottoman Empire : 220,000 Army of Egypt : 80,001 Army of Rhodes : 20,000 Army of Syria : 20,000 Army of the East : 30,000 2nd invasion of Egypt : 60,000 Great Britain : 30,000 40