How was Egypt colonised?

I'm guessing some nomads settled at where Egypt is and built up their legacy there. It's like Carthage, tanned people migrated to the north of africa and settled.