The eleventh dynasty rose at Thebes about 2134 BC; by c. 2055 Mentuhotep II reunited Egypt, opening the Middle Kingdom (dynasties eleven to fourteen). The twelfth (1991-c. 1802 BC) was its height: Sesostris III tightened the center and the frontier forts, Amenemhat III opened the Fayum oasis to irrigation; letters reached their classical peak - the Tale of Sinuhe and the Dialogue of a Man with his Ba set the later standard of Middle Egyptian. Trade ran to the Levant, Nubia and Punt. After c. 1786 the royal house feuded; the Asiatic Hyksos took the Delta (dynasties fifteen and sixteen), the Theban lords of upper Egypt paying them homage - the Middle Kingdom ended, and Egypt's first foreign rule began.