What events caused the end of the middle kingdom?

The event that caused the end of the Middle Kingdom was the conquest of Egypt by the Hyksos.