A Criminal Code is a compilation of government laws that outline a nation's laws regarding criminal offenses, and the maximum and minimum punishments that courts can impose upon offenders when such crimes are committed (for example: vandalism, retail theft, theft of property, mob action, criminal trespass).