information:filtering
Egyptian expedition

After two months of planning, Bonaparte decided that France's naval strength was not yet sufficient to confront the British Royal Navy. He decided on a military expedition to seize Egypt and thereby undermine Britain's access to its trade interests in India. Bonaparte wished to establish a French presence in the Middle East and join forces with Tipu Sultan, the Sultan of Mysore, an enemy of the British. Bonaparte assured the Directory that "as soon as he had conquered Egypt, he will establish relations with the Indian princes and, together with them, attack the English in their possessions". The Directory agreed in order to secure a trade route to the Indian subcontinent.

In May 1798, Bonaparte was elected a member of the French Academy of Sciences. His Egyptian expedition included a group of 167 scientists, with mathematicians, naturalists, chemists, and geodesists among them. Their discoveries included the Rosetta Stone, and their work was published in the Description de l'Égypte in 1809. En route to Egypt, Bonaparte reached Hospitaller Malta on 9 June 1798, then controlled by the Knights Hospitaller. Grand Master Ferdinand von Hompesch zu Bolheim surrendered after token resistance, and Bonaparte captured an important naval base with the loss of only three men.

Bonaparte and his expedition eluded pursuit by the Royal Navy and landed at Alexandria on 1 July. He fought the Battle of Shubra Khit against the Mamluks, Egypt's ruling military caste. This helped the French practise their defensive tactic for the Battle of the Pyramids on 21 July, about 24 km (15 mi) from the pyramids. Bonaparte's forces of 25,000 roughly equalled those of the Mamluks' Egyptian cavalry. Twenty-nine French and approximately 2,000 Egyptians were killed. The victory boosted the French army's morale.

On 1 August 1798, the British fleet under Sir Horatio Nelson captured or destroyed all but two vessels of the French fleet in the Battle of the Nile, preventing Bonaparte from strengthening the French position in the Mediterranean. His army had succeeded in a temporary increase of French power in Egypt, though it faced repeated uprisings. In early 1799, he moved an army into the Ottoman province of Damascus (Syria and Galilee). Bonaparte led these 13,000 French soldiers in the conquest of the coastal towns of Arish, Gaza, Jaffa, and Haifa. The attack on Jaffa was particularly brutal. Bonaparte discovered that many of the defenders were former prisoners of war, ostensibly on parole, so he ordered the garrison and some 1,500–5,000 prisoners to be executed by bayonet or drowning. Men, women, and children were robbed and murdered for three days.

Bonaparte began with an army of 13,000 men. 1,500 were reported missing, 1,200 died in combat, and thousands perished from disease—mostly bubonic plague. He failed to reduce the fortress of Acre, so he marched his army back to Egypt in May. Bonaparte was alleged to have ordered plague-stricken men to be poisoned with opium to speed the retreat. Back in Egypt on 25 July, Bonaparte defeated an Ottoman amphibious invasion at Abukir.

Bonaparte stayed informed of European affairs. He learned that France had suffered a series of defeats in the War of the Second Coalition. On 24 August 1799, fearing that the Republic's future was in doubt, he took advantage of the temporary departure of British ships from French coastal ports and set sail for France, despite the fact that he had received no explicit orders from Paris. The army was left in the charge of Jean-Baptiste Kléber.