There are many classes in the social hierarchy, but in this hierarchy there were only 8 classes.
In the highest class laid the pharaoh/king and the gods.
The king or Pharaoh was their president and they ruled small/large cities.
The gods looked over these pharaohs and people. If they didn't appreciate them the gods would bring wars and floods, but if they did appreciate than then the sun would shine and it would be very peaceful.
Beneath the highest class laid the nobles.
The nobles were their generals and advisors. They were the only ones that could hold a government post.
In the third class laid the priest, government, and officials
These people were in charge of collecting taxes, there were the rulers of the justice system.
Scribes were in the 4th class
keep track of records using different pictures, they didn't have to pay taxes, and they became very wealthy.
underneath the scribes were the soldiers
the soldiers were offered to ride in high class chariots and items like that, if they found treasure during battle they could keep it, and as payment they had land to train on.
This is where the lower class started to form.
The artists, Artisans, and architects were
They worked in teams, they were skilled workers, very few were allowed to work in royal workshops.
Farmers and peasants were next
Most of them were canal diggers and they were the ones who moved the stones.
Some of them were hunting animals, tending fields, and they could pay taxes using crops.
The last class was slaves
They worked for people, they also work on farms, and they even worked on buildings.