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
HMS Swiftsure (1787) Irwin, but the following month Captain Benjamin Hallowell took command. Hallowell was still in command of "Swiftsure" in 1798, when he was ordered to join Horatio Nelson's squadron, watching the French fleet at Toulon. After the French escaped and captured Malta in June, and invaded Egypt in July, Nelson and his fleet pursued them, eventually locating them anchored in Aboukir Bay on 1 August. "Swiftsure" was not initially with the fleet, having been ordered by Nelson to reconnoitre Alexandria, before the French had been discovered. He arrived on the scene after dark and moved into the bay to attack. The