Thoth — Egyptian Djehuty — is one of the oldest deities in the Egyptian pantheon, attested from the earliest dynasties and worshipped continuously for over three thousand years. His primary cult centre was at Hermopolis Magna (Greek name) — Egyptian Khmunu, "City of Eight" — in Middle Egypt, where he was chief deity and where his creation myth placed him as the self-created primordial god who existed before all others.
He is depicted in two primary forms: as an ibis — the long-beaked bird of the Nile marshes whose curved beak suggested the crescent moon — or as a baboon with a lunar disk on his head. Both animals were considered sacred to Thoth; vast numbers of mummified ibises and baboons have been found at Hermopolis and Saqqara, offered by devotees seeking his favour. In human form he is depicted as a man with an ibis head, carrying a palette and reed pen — the scribe's tools — or the Was-scepter of divine power.
In the great mythological narratives of Egyptian religion, Thoth plays multiple indispensable roles. He is the divine scribe who records the proceedings of the gods' tribunal; the healer who restores the Eye of Horus after Set damages it; the mediator who resolves disputes between opposing forces; the psychopomp who guides souls through the underworld; and the keeper of time who regulates the lunar calendar. He is simultaneously the most learned and the most impartial of the gods — the one to whom all parties appeal when they need a witness who cannot be bribed, deceived or coerced.
His association with the moon is fundamental. As Ra governs the day, Thoth governs the night — illuminating the darkness with reflected light, measuring time through the lunar cycle, governing the ebb and flow of tides and moisture. The moon's phases — its waxing to fullness and its waning to darkness — were understood as the monthly restoration of the Eye of Horus: Thoth healing what Set had damaged, bringing the lunar light back to fullness through his magical knowledge.