The rule of law is a political ideal that all citizens and institutions within a country, state, or community are accountable to the same laws, including lawmakers and leaders. The term rule of law is closely related to constitutionalism as well as Rechtsstaat. It refers to a political situation, not to any specific legal rule. The rule of law is defined in the Encyclopedia Britannica as "the mechanism, process, institution, practice, or norm that supports the equality of all citizens before the law, secures a nonarbitrary form of government, and more generally prevents the arbitrary use of power."
Use of the phrase can be traced to 16th-century Britain. In the following century, Scottish theologian Samuel Rutherford employed it in arguing against the divine right of kings. John Locke wrote that freedom in society means being subject only to laws written by a legislature that apply to everyone, with a person being otherwise free from both governmental and private restrictions on his liberty. "The rule of law" was further popularized in the 19th century by British jurist A. V. Dicey. However, the principle, if not the phrase itself, was recognized by ancient thinkers. Aristotle wrote: "It is more proper that law should govern than any one of the citizens: upon the same principle, if it is advantageous to place the supreme power in some particular persons, they should be appointed to be only guardians, and the servants of the laws."
The rule of law implies that every person is subject to the law, including persons who are lawmakers, law enforcement officials, and judges. In this sense, it stands in contrast to tyranny or oligarchy, where the rulers are held above the law.
Several scholars have traced the concept of the rule of law back to 4th-century BC Athens, seeing it either as the dominant value of the Athenian democracy, or as one held in conjunction with the concept of popular sovereignty. However, these arguments have been challenged and the present consensus is that upholding an abstract concept of the rule of law was not "the predominant consideration" of the Athenian legal system.