The Maya civilization developed complex societies and cities in Mesoamerica from around 2000 BC. They created a fully developed hieroglyphic writing system and advanced calendars. The Maya civilization peaked during the Classic period from 250-900 AD, when many city-states flourished. After a collapse in the 9th century, the Postclassic period saw the rise of new cities. The Spanish conquest in the 16th-17th centuries led to the fall of the last Maya city.