Ancient Egypt is the only civilization in history to have been eclipsed twice and bounced back to prominence on both occasions. Dynasties XIII through XVII saw the Middle Kingdom's decline, the advent of foreign rule, and finally, the expulsion of the Hyksos by a heroic prince of Thebes and his two sons at the end of Dynasty XVII.