By 5000 BC, hunter-gatherers had settled in the fertile Nile River valley in Egypt. They farmed the land and built villages, becoming the earliest Egyptians. The Nile provided water for drinking, fishing, farming, and transportation, and its regular flooding deposited rich soil. The geography of Egypt, with deserts and cataracts, protected it from invaders. Egyptian civilization grew prosperous due to fertile land and relative isolation.