Thoth wrote the laws of the universe. Then he upgraded himself. Thoth was the God of Knowledge, the Moon, Measurement, Wisdom, the Alphabet, Records, Thought, Intelligence, Meditation, the Mind, Logic, Reason, Reading, Hieroglyphics, Magic, Secrets, Scribes, and Writing. He went by other names in the myths of ancient civilizations playing a major diety in each pantheon the same soul different identities playing multiple roles simultaneously. One of his most famous roles was that of Thoth a major deity in ancient Egyptian mythology. In art Thoth was often depicted as a man with the head of an ibis or baboon, animals sacred to him. Thoth's chief temple was located in the city of Khmun, later called Hermopolis Magna during the Greco-Roman era (in reference to him through the Greeks' interpretation that he was the same as their god Hermes) and Shmounein in the Coptic rendering, and was partially destroyed in 1826. In that city, he led the Ogdoad pantheon of eight principal deities. He also had numerous shrines within the cities of Abydos, Hesert, Urit, Per-Ab, Rekhui, Ta-ur, Sep, Hat, Pselket, Talmsis, Antcha-Mutet, Bah, Amen-heri-ab, and Ta-kens. Thoth played many vital and prominent roles in Egyptian mythology, such as maintaining the universe, and being one of the two deities (the other being Ma'at) who stood on either side of Ra's boat. In the later history of ancient Egypt, Thoth became heavily associated with the arbitration of godly disputes, the arts of magic, the system of writing, the development of science, and the judgment of the dead.