First Battle of Algeciras manoeuvrable ships, which resulted in the British inflicting heavy losses on the Spanish rearguard but failing for a second time to destroy the French squadron. On 1 August 1798, the French Mediterranean Fleet was almost completely destroyed at the Battle of the Nile in Aboukir Bay off Egypt. As a result, the British Royal Navy became dominant in the Mediterranean Sea and imposed blockades on French and Spanish ports in the region, including the important naval bases of Toulon and Cadiz. By 1801, the British were planning a large scale operation to invade and recapture Egypt from the French, and
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