Thoth (Ancient Egyptian: ḏḥwty, Coptic: Tot, Greek: Θώθ, Arabic: توت Tūt) is an ancient Egyptian deity who was revered as the god of wisdom, writing, and magic. He was often depicted as a man with the head of an ibis or a baboon, animals sacred to him. Thoth was considered the inventor of writing and the scribe of the gods, playing a crucial role in the myth of the weighing of the heart in the afterlife. He was also believed to be the author of many works of literature and magic. In the context of Egyptian mythology, Thoth was seen as a mediator and a reconciler, often depicted as the arbiter in the contest between Horus and Set. His cult center was located in Hermopolis Magna (Khemenu in Egyptian, meaning "eight towns"), where he was part of the Ogdoad, a group of eight deities associated with creation. Thoth's influence extended beyond Egypt, with his worship and attributes being adopted and adapted by various cultures, including the Greeks, who equated him with their god Hermes.