An invasion of Egypt and Syria by Napoleon I of France took place in 1798–99, but ended due to British intervention.