The Madrid Codex is the longest of the surviving Maya codices.[1] Its content mainly consists of almanacs and horoscopes used to help Maya priests in the performance of their ceremonies and divinatory rituals.