The Maya were divided into kingdoms, each of which had a city and a ruler, who acted as war leader, lawmaker, and chief priest. After 900 Mayan civilization declined, possibly because their farming methods led to exhausted fields and failing crops.