The Maya created a complex calendar system to regulate their world — one of the most accurate of pre-modern times.

Source: Maya nobility performed bloodlettin... a 'dying' sun god during solar eclipses