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 18 August 1798 Thompson had manning problems: casualties from the Battle of Santa Cruz de Tenerife in July 1797 had never been replaced, 14 men had been wounded in the battle at Aboukir Bay and two officers and fifty men had been detached to man the captured French prizes. This left Thompson with just 282 men on board "Leander". Following Nelson's orders, Thompson sailed on 5 August. After fleeing Aboukir Bay, Admiral Villeneuve had been delayed in the Eastern Mediterranean by northeasterly winds, and on 17 August he decided to split his forces, sailing for Malta with his flagship "Guillaume Tell" and the