 Rituals such as prayer and offerings were provided to the gods to gain their favor.Formal religious practice centered on the pharaohs, the rulers of Egypt, believed to possess divine powers by virtue of their positions.They acted as intermediaries between their people and the gods, and were obligated to sustain the gods through rituals and offerings so that they could maintain "Ma'at", the order of the cosmos.