The criminal justice system consists of three main parts: legislative (creation of laws); adjudication (the courts); and corrections (jails, prisons, probation and parole). In the criminal justice system, these distinct agencies operate together both under the rule of law and as the principal means of maintaining the rule of law within society.