Thoth was one of the deities of the Egyptian pantheon. In art, he was often depicted as a man with the head of an ibis an animal sacred to him. His feminine counterpart was Seshat, and his wife was Ma'at.
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.
Like many ancient Egyptian deities, Anubis assumed different roles in various contexts. Depicted as a protector of graves as early as the First Dynasty (c. 3100 – c. 2890 BC), Anubis was also an embalmer. By the Middle Kingdom (c. 2055 – 1650 BC) he was replaced by Osiris in his role as lord of the underworld. One of his prominent roles was as a god who ushered souls into the afterlife. He attended the weighing scale during the "Weighing of the Heart," in which it was determined whether a soul would be allowed to enter the realm of the dead. Despite being one of the most ancient and "one of the most frequently depicted and mentioned gods" in the Egyptian pantheon, Anubis played almost no role in Egyptian myths.
Ammit lived near the scales of justice in Duat, the Egyptian underworld. In the Hall of Two Truths, Anubis weighed the heart of a person against the feather of Ma'at, the goddess of truth, which was depicted as an ostrich feather (the feather was often pictured in Ma'at's headdress). If the heart was judged to be not pure, Ammit would devour it, and the person undergoing judgement was not allowed to continue their voyage towards Osiris and immortality. Once Ammit swallowed the heart, the soul was believed to become restless forever; this was called "to die a second time".