When the Hyksos left Upper Egypt, the Egyptian ruling house in Thebes set itself up as the Seventeenth Dynasty. This dynasty under Seqenenre Tao, Kamose and Ahmose, first pharaoh of the New Kingdom, forced the Hyksos out of Egypt and back into Asia