The three main purposes of criminal law, according to the criminal law definition, are to protect the public, deter crime, and punish those who break the law. These goals can be achieved by adopting criminal laws that are clear and specific, enforcing them fairly and consistently, providing effective criminal penalties that deter criminal behavior, and treating all citizens equally under the law.