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
Action of 27 June 1798 the secret French recognition codes. This appears to have convinced the French that the strangers were not enemy ships, and no move was made against them, Foote and Gage free to observe the French anchorage in Aboukir Bay before striking out along the African coast in search of Nelson. The British admiral was at this time resupplying his ships at Syracuse on Sicily, and when he sailed on 25 July he passed eastwards to Morea where he learned of the French invasion of Egypt from the Turkish governor of Coron. Striking directly southwards, Nelson arrived at Aboukir Bay on 1