Around 3000 BCE, the wet phase of the Sahara came to an end. The Saharan populations retreated to the south towards the Sahel, and east in the direction of the Nile Valley. It was these populations, in addition to Neolithic farmers from the Near East, that likely played a role in the formation of the Egyptian state as they brought their food crops, sheep, goats and cattle to the Nile Valley.