 Theoretically it was the duty of the pharaoh to carry out temple rituals, as he was Egypt's official representative to the gods.In reality, ritual duties were almost always carried out by priests.During the Old and Middle Kingdoms, there was no separate class of priests; instead, many government officials served in this capacity for several months out of the year before returning to their secular duties.