Criminal law is a body of law that pertains to crime and the punishment of individuals who violate laws designed to protect public safety and order. It encompasses the prosecution by the government of a person for an act that has been classified as a crime, with the aim of deterrence, retribution, rehabilitation, and incapacitation.