A statute is a formal written enactment of a legislative authority that governs the legal entities of a city, state, or country by way of consent. Typically, statutes command or prohibit something, or declare policy. Statutes are rules made by legislative bodies; they are distinguished from case law or precedent, which is decided by courts, and regulations issued by government agencies.
In virtually all countries, newly enacted statutes are published and distributed so that everyone can look up the statutory law. This can be done in the form of a government gazette which may include other kinds of legal notices released by the government, or in the form of a series of books whose content is limited to legislative acts. In either form, statutes are traditionally published in chronological order based on date of enactment.
A universal problem encountered by lawmakers throughout human history is how to organize published statutes. Such publications have a habit of starting small but growing rapidly over time, as new statutes are enacted in response to the exigencies of the moment. Eventually, persons trying to find the law are forced to sort through an enormous number of statutes enacted at various points in time to determine which portions are still in effect.
The solution adopted in many countries is to organize existing statutory law in topical arrangements (or "codified") within publications called codes, then ensure that new statutes are consistently drafted so that they add, amend, repeal or move various code sections. In turn, in theory, the code will thenceforth reflect the current cumulative state of the statutory law in that jurisdiction. In many nations statutory law is distinguished from and subordinate to constitutional law.
The term statute is also used to refer to an International treaty that establishes an institution, such as the Statute of the European Central Bank, a protocol to the international courts as well, such as the Statute of the International Court of Justice and the Rome Statute of the International Criminal Court.