The British army, under the command of Lieutenant-General Sir Ralph Abercromby, had been sent to Egypt to remove the French garrison from the region, following Napoleon's departure in August 1799.
On 8 March, the British vanguard of 5,500 came ashore by boat, opposed by a French force from the garrison of Alexandria under Louis Friant of some 2,000 drawn up on the sand dunes overlooking the landing beach, an action known as the Second Battle of Abukir.
[3] Having established a depot and field hospital on the beach, the British besieged and captured Aboukir Castle from the French and began preparations to move against Alexandria.
Halting while a reconnaissance was conducted by Abercrombie, during which his horse was shot from underneath him, the British forces eventually withdrew at sunset to the line which they had captured earlier in the day.
[6] The British set about further fortifying their new position, landed heavy guns from the ships offshore and bringing up supplies with the intention of blockading the French garrison.