Human beings emerged in Africa around 250,000 years ago and began migrating out of Africa around 100,000 years ago, populating the world. Paleolithic societies consisted of small bands of 25-30 hunter-gatherers who were nomadic. Around 12,000 years ago, agriculture began to emerge, allowing people to produce surplus food and live in larger, more permanent settlements. Early civilizations developed around 3500-3000 BC in Mesopotamia, Egypt, and Peru, featuring city life, class divisions, and early forms of government. While sharing common features, Mesopotamian and Egyptian civilizations also had important differences in their development.