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
Action of 24 June 1801 a British fleet under Rear-Admiral Sir Horatio Nelson destroyed the French Mediterranean Fleet at Aboukir Bay on the Egyptian coast. The battle completely reversed the strategic situation in the Mediterranean: British forces had evacuated the region in 1796 after the Treaty of San Ildefonso brought Spain into the war on the French side, but they were now able to return in large numbers. As French maritime lines of communication were cut, the French "Armée d'Orient" under General Napoleon Bonaparte became trapped in Egypt. Unable to return to Europe by sea, the army attempted and failed to pass overland through Palestine