Criminal law is the body of laws dealing with criminal acts that are harmful to individuals, society or the state.
They also define punishment for transgression.