A statute is a written law passed by a legislative body on the state or federal level. It is a formal written enactment of a legislative body that commands or prohibits something or declares policy2. situations. They are distinguished from case law or precedent, which is decided by courts, and regulations issued by government agencies.