This article explores the concept of “morality” as it developed in the field of criminal justice under the Habsburg monarchy during and after the Enlightenment reforms. Two penal codes, ratified in 1787 and 1803–1804, established a new, separate category for serious police offences with a heavy focus on acts against morality. Some of these offenses were grouped according to their explicitly public dimension, like endangering the public peace or serving as a bad example.