Battle of Mahé Louis in December 1799 had restored absolute British control. The importance of the East Indies to British trade encouraged a number of French plans to threaten the region, of which the most advanced was the invasion, in 1798, of Egypt by a French Army under General Napoleon Bonaparte. Although the campaign saw initial success, the annihilation of the French Mediterranean Fleet by Sir Horatio Nelson at the Battle of the Nile on 1 August 1798 effectively doomed the campaign to failure. Later in the year Bonaparte considered building a squadron at Suez in the Red Sea, but the plans were
Sir Thomas Thompson, 1st Baronet to allow them to withdraw. Thompson himself was wounded in the battle. Thompson was later given command of a squadron, and carried out cruises in the Mediterranean, intercepting French and Spanish ships. He returned to Gibraltar, but was ordered to sea again in June 1798 to reinforce Nelson's squadron in their hunt for the French fleet that had earlier escaped from Toulon. He was with Nelson when they located the French fleet, under the command of Vice-Admiral Brueys, moored in Aboukir Bay. In the ensuing engagement Thompson came to the assistance of , which had run aground on shoals in