The content of the Madrid Codex mainly consists of almanacs and horoscopes that were used to help Maya priests in the performance of their ceremonies and divinatory rituals. The codex also contains astronomical tables, although fewer than the other two generally accepted surviving Maya codices