Anubis is the Greek name for a jackal-headed god associated with mummification and the afterlife in Egyptian mythology. In the ancient Egyptian language, Anubis is known as Inpu, (variously spelled Anupu, Ienpw etc.). The oldest known mention of Anubis is in the Old Kingdom pyramid texts, where he is associated with the burial of the king. At this time, Anubis was the most important god of the Dead but he was replaced during the Middle Kingdom by Osiris.
He takes various names in connection with his funerary role, such as He who is upon his mountain, which underscores his importance as a protector of the deceased and their tombs, and the title He who is in the place of embalming, associating him with the process of mummification. Like many ancient Egyptian deities, Anubis assumes different roles in various contexts, and no public procession in Egypt would be conducted without an Anubis to march at the head. Anubis was the god to protect the dead and bring them to the afterlife.
He was usually portrayed as a half human, half jackal, or in full jackal form wearing a ribbon and holding a flail in the crook of its arm. The jackal was strongly associated with cemeteries in ancient Egypt, since it was a scavenger which threatened to uncover human bodies and eat their flesh The distinctive black color of Anubis "did not have to do with the jackal [per se] but with the color of rotting flesh and with the black soil of the Nile valley, symbolizing rebirth."