The ancient Egyptian jackal-headed god of the afterlife was Anubis. He was associated with embalming, funerary rituals, cemeteries, and the protection of the dead.
Anubis was traditionally shown with a black jackal's head and a human body. The color black symbolized fertile Nile soil and regeneration, not evil. His jackal form may reflect the presence of wild canids near desert cemeteries, where they could disturb burials.
In Egyptian belief, Anubis helped guide the deceased and played an important role in the judgment of the dead. He was linked to the weighing of the heart against the feather of Ma'at, which represented truth and cosmic order. If the heart was judged worthy, the deceased could enter the afterlife.
A common mix-up is Osiris, who also became strongly associated with the afterlife. Osiris was the dead and resurrected king of the underworld, while Anubis was primarily the divine embalmer, guardian of graves, and guide of souls. Over time, Anubis's funerary role was partly absorbed into the mythology surrounding Osiris.