A law that regulates how to punish anyone who violates a legal rule, imposes legal punishment on him, defines permissible and prohibited actions, and requires a penalty for each crime.
Criminal law or penal law is a branch of legal science that is related to crime. And it can be defined as a set of laws that the state puts in place regarding the behavior that is forbidden, in a way that threatens the security and safety and interest of the public and exposes it to danger, and penalties are enacted for it on violators of these laws. Criminal law differs from civil law