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
Sir Thomas Thompson, 1st Baronet to allow them to withdraw. Thompson himself was wounded in the battle. Thompson was later given command of a squadron, and carried out cruises in the Mediterranean, intercepting French and Spanish ships. He returned to Gibraltar, but was ordered to sea again in June 1798 to reinforce Nelson's squadron in their hunt for the French fleet that had earlier escaped from Toulon. He was with Nelson when they located the French fleet, under the command of Vice-Admiral Brueys, moored in Aboukir Bay. In the ensuing engagement Thompson came to the assistance of , which had run aground on shoals in