Punishment is a penalty given for committing a crime or offense. There are several purposes of punishment including: deterrence, rehabilitation, retribution, incapacitation, and restitution. Deterrence aims to prevent future crimes through specific deterrence of the individual criminal and general deterrence of the wider public. Rehabilitation seeks to reform criminals and prevent recidivism through education and treatment programs. Retribution imposes suffering on the criminal proportional to their offense to achieve a sense of justice or vengeance. Incapacitation prevents future crimes by removing the criminal from society through incarceration or execution. Restitution financially compensates victims for harm caused by the crime.