HMS Emerald (1795) dispatched a squadron of five ships, including "Emerald" and commanded by Nelson in the 74-gun , to locate a large invasion fleet that had left Toulon. After receiving intelligence on 22 May, Nelson correctly predicted the French fleet's destination and set course for Alexandria where the British captured or destroyed all but two of the French ships at the Battle of the Nile, which occurred between 1–3 August 1798. "Emerald" missed the battle; having previously become separated from the rest of the squadron in a storm on 21 May, she arrived at Aboukir Bay on 12 August. When Nelson left
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