Napoleon was born in Corsica in 1769 to a family of minor Italian nobility. He attended military school in France and graduated at a young age, joining the army. During the French Revolution, Napoleon defended the Tuileries Palace from royalist rebels, becoming a hero. He married Josephine, though they had affairs. Napoleon led the French Army of Italy successfully against Austria and Sardinia between 1796-1797, gaining fame and influence. He led an expedition to seize Egypt in 1798 but was defeated by the British at the Battle of the Nile. Despite this, Napoleon maintained his popularity and fame in France.