Under the Pharaoh on the social pyramid sat the vizier (advisor). The vizier was the chief minister in charge of managing the taxes, building projects and government records that were kept by scribes. Next came the priests of the temples and the various nobles who held government jobs. Nobles were quite wealthy as they kept a part of the tax normally given to the pharaoh as well as some of the tributes that were given by the people to the gods. Army officials and scribes were on the next level down on the social pyramid. The soldiers fought in the armies during wartime, but in peacetime many supervised the peasants, enslaved people and farmers. They were also part of the building process of palaces, pyramids and other structures.