The social structure of ancient Egypt was highly stratified. At the top were the pharaoh (king) and religious leaders, followed by a middle class of wealthy merchants and skilled workers, then the vast majority of peasant farmers, and finally enslaved people at the bottom.