napoleons invasion of egypt in 1798 was the first attack on a middle eastern country by a western power in modern times. he was just twenty-eight when he invaded egypt and it was an episode which contained in embryo many seminal events in his later life.