Criminal law is a branch of law that defines conduct prohibited by the state because it threatens or harms public safety, welfare, or morality. It encompasses statutes, regulations, and precedents that dictate the prosecution and punishment of individuals or entities who commit crimes. Criminal law covers a wide range of offenses, from minor infractions like traffic violations to serious crimes such as murder and theft. Its primary goal is to maintain social order, deter criminal behavior, and protect the rights of individuals by ensuring fair trials and appropriate punishment for offenders.