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
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