The Hyksos, invaders from Western Asia, took advantage of a weakened Egypt and gained control of Lower and Middle Egypt around 1650 BCE. They had superior weapons like bronze and chariots. Many Egyptian towns surrendered without resistance, moving to Thebes in Upper Egypt. The Hyksos established trade alliances that cut off Thebes. Kamose became king of Thebes and began attacking the Hyksos and their allies. His younger brother, Ahmose, finally defeated the Hyksos after a three-year campaign, reunifying Egypt and beginning its New Kingdom period.