The document discusses the evolution of punishment and criminal justice systems from medieval times through the Enlightenment period. It mentions that in medieval times, torture and the Bloody Code were used to punish criminals, potentially influenced by religion. It then discusses changing views during the Enlightenment, including the introduction of the Panopticon prison model which aimed to rehabilitate criminals through discipline and surveillance.