Law is a formal mechanism of social control. Legal rules can change instantly and must be obeyed. Legal duties apply to everyone in a particular society. Legal rules are imposed and enforced by the state. There is a system of courts which apply and enforce the law. In criminal law there are penalties for breaking the law. The most severe penalty is imprisonment for life. In civil law the courts can order the party who has broken the rules to compensate the innocent party, or the courts can make some other order trying to put right the wrong that was done.