Thoth is the Egyptian god of writing, wisdom, and the moon — the ibis-headed scribe of the gods, who recorded the judgment's verdict, invented the hieroglyphs, and arbitrated the gods' disputes. When the sun's Eye raged or the moon's light needed restoring, Thoth's counsel did it; every scribe poured a drop of ink to him.
The ibis, the baboon, the scribe's palette, the crescent moon
Cult Centers
Hermopolis (Khemenu)
Origins & Attestation
Old Kingdom texts know the ibis-god; Hermopolis made him head of the eight primordial ogdoad's ordering; the wisdom-books carry his name's authority.
Egyptian scribes called him their founder — the profession's own god of the craft the state ran on.
Myths
The moon's restoration: the Eye damaged in the sky-world's struggles, Thoth heals and restores the moon's light — and wins the five days of the year's bonus (see Nut's barred birth) with his gaming.
The verdict's scribe: in the hall of Osiris he records the weighing — Anubis steadies the scale, Maat's feather weighs, Thoth writes the fate.
The arbiter: in the Contendings of Horus and Seth his diplomacy settles what force could not — the wise god between the rivals.
Worship & Cult
Hermopolis his city; the ibis mummies by the million (the sacred birds' catacombs); the scribes' morning offering — a drop of ink from the new pot.
Iconography
An ibis-headed man with palette and reed pen, or the baboon seated with the moon-disc — the two animals' wisdom the Egyptians read in each.
Parallels
The scribe-god office pairs him with Itzamna's writing-gift across the world; his moon-role with Tsukuyomi's — and the Greeks made him Hermes Trismegistus, wisdom's own patron, a god translated into a whole literature.