The French campaign in Egypt and Syria (1798–1801) was Napoleon Bonaparte's campaign in the Ottoman territories of Egypt and Syria, proclaimed to defend French trade interests, to establish scientific enterprise in the region and ultimately to join the forces of Indian ruler Tipu Sultan and drive away British from the subcontinent. It was the primary purpose of the Mediterranean campaign of 1798, a series of naval engagements that included the capture of Malta. The campaign ended in defeat for Napoleon, and the withdrawal of French troops from the region.