In Egyptian Mythology, Anubis was the god of death. He was represented with the head of a jackal or a dog. His job is to be the final "obstacle" to the afterlife. He holds onto the scales and the Feather of Ma'at (goddess of order) and weighs it against the heart of the deceased. If the heart is lighter than the feather, the soul will pass on. But if the heart is heavier than the feather, that means the person was full of sin in life, meaning thier heart will be fed to Ammit, and the soul will cease to exist any more.