The criminal justice system is based on criminal sentencing law, the body of laws that define crimes and specify the punishments for such crimes. The majority of sentencing law is set at the state level.