In some societies the dog acquired a complex religious role. Probably the best known example is the ancient Egyptian jackal-headed god Anubis, often depicted as dog or even wolf-headed. Among other things Anubis presided over [the process of embalming or mummification, by which means the ancient Egyptians sought to ensure resurrection and eternal life for the deceased. In the guise of embalmer, Anubis played a central role in the cycle of death and rebirth, providing the key to the next world and guiding the souls of the departed on their final journey.
The concept of the dog as a spiritual intermediary between this world and the next is extraordinarily widespread. It recurs over and over again in myths, legends and religious beliefs in areas as far apart as Africa, New Zealand and North America. The same general theme predominates: that the help and g guidance of the dog is needed for a smooth transition from death to afterlife. It is not known why this association between dogs and death evolved independently in so many different cultures, but most authorities link it to the dog's (and jackal's) habit of consuming carrion. There could, however, be another less macabre interpretation.