Thoth was worshiped as a Baboon in Hermopolis and was the god of the moon, magic, and wisdom. He wrote down the heart and answers at judgment. He is closely associated with the Greek Hermes and exemplifies the Trickster motif. He gambled with Khonsu and won 5 days of his light so that Nut could give birth. The year now has 365 days instead of 360.