The purpose of criminal procedure law
The criminal law is the foundation of the criminal justice system. The law defines the acts that may lead to an arrest, prosecution, and imprisonment. States punish a range of acts in their criminal codes. The criminal law prohibits conduct that causes or threatens the public interest; defines and warns people of the acts that are subject to criminal punishment; distinguishes between serious and minor offenses; and imposes punishment to protect society and to satisfy the demands for retribution, rehabilitation, and deterrence.