They were driven out of Lower Egypt by Ahmose I who founded the 18th Dynasty, ruling over a united Egypt from a capital at Thebes.
Ahmose I founded the 18th Dynasty in Egypt from Thebes.