During the War of the First Coalition (1792–97), the Directoire had replaced the National Convention. Five directors then ruled France. As Great Britain was still at war with France, a plan was made to take Egypt from the Ottoman Empire, a British ally. This was Napoleon's idea and the Directoire agreed to the plan in order to send the popular general away from the mainland. Napoleon defeated the Ottoman forces during the Battle of the Pyramids (21 July 1798) and sent hundreds of scientists and linguists out to thoroughly explore modern and ancient Egypt. Only a few weeks later the British fleet under Admiral Horatio Nelson unexpectedly destroyed the French fleet at the Battle of the Nile (1–3 August 1798). Napoleon planned to move into Syria but was defeated at the Siege of Acre and he returned to France without his army, which surrendered.