The Maya Calendar was the center of Maya life and one of their greatest cultural achievements. The Maya Calendar’s ancestral knowledge guided the Maya’s existence from the moment of their birth. (mayacalendar.com)
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.
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. (Wikipedia)