What event led to the end of the Middle Kingdom?

The Hyksos took control of Egypt