 In this state, he was directly identified with Ra, and was also associated with Osiris, god of death and rebirth and the mythological father of Horus.Many mortuary temples were dedicated to the worship of deceased pharaohs as gods.The Egyptians had elaborate beliefs about death and the afterlife.