Osiris was the god of the Underworld. He was also one of the Nine Gods. One of his duties as Lord of the Dead was to do the very last judgment of the Dead, and after that to protect people from the dangers of the Underworld.