Criminal law defines criminal conduct, specifies punishments, and regulates investigation and prosecution of suspected criminals. A crime requires both a wrongful act and criminal intent. Crimes are considered wrongs against society and are prosecuted by the government as the representative of society. The criminal law originated from primitive tribal customs and has developed through various legal codes, common law, and statutory law.