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
Siege of Malta (1798–1800) without discovering their presence, and arrived off Alexandria on 28 June ahead of Bonaparte. Believing that the French must have had a different objective, Nelson turned northwards the following day to investigate the coast of Anatolia and missed Bonaparte's arrival on 30 June by less than 24 hours. Unopposed, Bonaparte landed his army and marched on Alexandria, capturing the city and turning inland. The fleet was ordered to anchor in nearby Aboukir Bay and await further instructions. On 1 August, Nelson returned to the Egyptian coast and discovered the French fleet at anchor. Attacking immediately, Nelson's ships managed to capture