What caused the end of the old kingdom of ancient Egypt?

I have looked at other sites, and I assume the it is bacause of droughts and religious changes.