Ancient Egypt lasted from 3100 BC to 30 BC, spanning from the first dynasty to the Ptolemaic dynasty. During this time, Egypt was divided into Upper and Lower Egypt. Society was strictly stratified, with the pharaoh at the top and slaves at the bottom. Egyptians lived in mudbrick houses and ate a diet centered around wheat, vegetables, fruits, and fish from the Nile. Children were highly valued and received some education, while girls had fewer opportunities than boys. Religion was an important part of daily life, centered around gods like Osiris. Art, music, and festivals were also part of Egyptian culture.