The Egyptian civilization developed along the fertile banks of the Nile River around 5,000 years ago. The annual flooding of the Nile provided rich soil for agriculture and transportation. A unified kingdom emerged under King Menes, and powerful pharaohs ruled absolute over the stratified society from Memphis and Thebes. Egyptians mummified their dead and built elaborate tombs and pyramids to prepare for the afterlife judged by Osiris. Their artistic canons emphasized idealized figures in monumental architecture, painting, and sculpture that served religious and political functions. Hieroglyphic writing and the priesthood supported the dominant polytheistic religion.