Osiris was the god of the afterlife and ruler of the underworld, who judged the souls of the dead. Anubis was the god of mummification and guided the souls through the underworld. Thoth was the god of writing and wisdom, who recorded the judgments of the dead, while Ra was the god of the sun and the bringer of life, who was associated with rebirth and resurrection.