The essentials of the Maya calendar are based upon a system which had been in common use throughout the region, dating back to at least the 5th century BCE. It shares many aspects with calendars employed by other earlier Mesoamerican civilizations, such as the Zapotec and Olmec, and contemporary or later ones such as the Mixtec and Aztec calendars. Although the Mesoamerican calendar did not originate with the Maya, their subsequent extensions and refinements of it were the most sophisticated. Along with those of the Aztecs, the Maya calendars are the best-documented and most completely understood.
By the Maya mythological tradition, as documented in Colonial Yucatec accounts and reconstructed from Late Classic and Postclassic inscriptions, the deity Itzamna is frequently credited with bringing the knowledge of the calendar system to the ancestral Maya, along with writing in general and other foundational aspects of Maya culture.