The ancient Egyptians settled along the fertile banks of the Nile River over 5,500 years ago where they developed one of the earliest and most influential civilizations. They relied heavily on the annual flooding of the Nile to water their crops and believed in an afterlife, building elaborate tombs and pyramids to bury their dead along with treasures. Egyptian society was stratified with the pharaoh as ruler, nobility and wealthy landowners, and peasants, and they made advances in areas like medicine, architecture, art, and writing.