The Aztec social hierarchy was organized into classes, with the emperor at the top as the head of state and military commander. Below the emperor were nobles and warriors, who could rise from lower classes through military success. Commoners included merchants, farmers, artisans, and slaves. Children received specialized education depending on their gender and social class to prepare them for their roles and uphold Aztec cultural virtues of courage, sacrifice, and obedience. Laws protected citizens and slaves alike.