The Maya civilization had a complex class structure with slaves on the bottom and priests and noble rulers at the top. Priests held significant power as they communicated with the gods and directed many aspects of daily life like planting, marriage, and human sacrifice. The Maya were organized into independent city-states, each ruled by a hereditary noble family claiming descent from mythic hero twins. Craftspeople created impressive art, music, and a sophisticated hieroglyphic writing system. Warriors held an important role and the Maya were often engaged in warfare. Farmers and women performed important agricultural work while slaves occupied the lowest level of society.