Napoleon was initially defeated by the Ottoman Empire and Britain at the Siege of Acre in 1799, and at the Battle of Abukir in 1801; by 1802, the French were completely vanquished in the Middle East.