The Eleventh Dynasty of ancient Egypt (notated Dynasty XI) is a well-attested group of rulers. Its earlier members before Pharaoh Mentuhotep II are grouped with the four preceding dynasties to form the First Intermediate Period, whereas the later members are considered part of the Middle Kingdom. They all ruled from Thebes in Upper Egypt.