The Battle of the Nile (also known as the Battle of Aboukir Bay; French: Bataille d'Aboukir) was fought between the Royal Navy and the French Navy at Aboukir Bay in Egypt between 1–3 August 1798. It was the climax of the Mediterranean campaign of 1798, which had started three months earlier after a large French fleet sailed from Toulon to Alexandria carrying an expeditionary force under Napoleon. A British fleet, led by Rear-Admiral Sir Horatio Nelson, decisively defeated a French fleet under Vice-Admiral François-Paul Brueys d'Aigalliers, which had escorted Napoleon's army to Egypt.
Napoleon sought to invade Egypt as the first step in a campaign against British India, as part of a greater effort to drive Britain out of the French Revolutionary Wars. As Napoleon's expeditionary force crossed the Mediterranean, it was pursued by a British fleet under Nelson who had been sent from a larger fleet in the Tagus to learn the purpose of the French expedition and to defeat it. He chased the French for more than two months, on several occasions missing them only by a matter of hours. Napoleon was aware of Nelson's pursuit and enforced absolute secrecy about his destination. He was able to capture Malta and then land in Egypt without being intercepted by the British navy.