Egyptian kingship has a one-line job description, preserved across two thousand years of royal inscriptions: to realize ma'at and drive out isfet, to establish order and repel disorder. The formula frames what a pharaoh was for. Ma'at, established at creation, is not self-maintaining; it is besieged, by chaos at the world's edges, by enemies at the borders, by falsehood in the courts, by greed in the granaries, and it persists only where power continually enacts it. Hence the compact ritual that condenses royal ideology into a single gesture: the king offering ma'at, presenting a small seated figure of the goddess to the gods. The offering says that the whole apparatus of rule, justice done, temples supplied, fields measured honestly, is itself the sacrifice, the thing the gods actually want. The principle disciplined the ruler as much as it exalted him.
Instruction literature, the wisdom genre in which Egypt excelled, measures officials and kings alike against ma'at: the vizier is installed with exhortations to impartiality; the eloquent peasant of the famous tale wins his case by appealing over corrupt officials to ma'at itself; and the Instruction for Merikare warns a future king that the judges of the dead will view his lifetime as a single hour. In the first millennium, as personal piety rose, ma'at's guardianship migrated partly from king to god, but the underlying claim never moved: order is a task, not a given, and someone must be doing it.