Action of 18 August 1798 by Napoleon Bonaparte intended for the invasion of Egypt. The convoy successfully eluded Nelson and the army landed at Alexandria on 31 June, capturing the city and advancing inland. The fleet was too large to anchor in Alexandria harbour and instead Bonaparte ordered its commander, Vice-Admiral François-Paul Brueys D'Aigalliers to take up station in Aboukir Bay. On discovering the French Nelson attacked immediately, ordering his ships to advance on the French line and engage, beginning the Battle of the Nile. As he closed with the French line, Captain Thomas Foley on the lead ship HMS "Goliath" realised that there was
Order of battle at the Battle of the Nile subsequently surrendered. Villeneuve eventually escaped to open water with just two ships of the line and two frigates. On 3 August the last two remaining French ships stranded in the bay were defeated, one surrendering and the other deliberately set on fire by its crew. The almost total destruction of the French fleet reversed the strategic situation in the Mediterranean, giving the Royal Navy control of the sea which it retained until the end of the Napoleonic Wars in 1815. Nelson and his captains were highly praised and generously rewarded, although Nelson privately complained that his peerage was not senior