Anubis, as the god of the afterlife, was closely associated with mummification and burial rites. Egyptian jackals had an association with the dead, as well. They were often found digging up buried bodies and eating them, which may be why Anubis was depicted as part jackal. The priests who mummified the dead kings (called pharaohs) wore costumes to make them appear like jackals.
The Egyptian people believed that Anubis helped decide the fate of the dead in the afterlife. The heart of the dead was weighed against the feather of truth (representing the goddess Ma'at), to see if the deceased was worthy of entering the afterlife. If the person had lived an evil life, his or her heart would be heavy with evil, and he or she would be eaten by Ammit (the Devourer). If a person was kind and good, the heart would be light, he or she could continue on to the afterlife safe and sound to meet Osiris.