between 1799 and 1801, the porte, working at times with france's main enemy, great britain, undertook various campaigns to restore ottoman rule in egypt. by august, 1801, the remaining french forces of general jacques-françois menou withdrew from egypt.