Deterrence is the use of
punishment as a threat to deter people from offending. Deterrence is often contrasted with
retributivism, which holds that punishment is a necessary consequence of a crime and should be calculated based on the gravity of the wrong done.