Pharaohs held the most power in Egypt. They were gods chosen to lead the people and maintain order, and provided a link between the people and their gods
The Priests held the most power because they were believed to have a direct connection to the gods. If something bad were to happen the people would blame it on the priests.