The criminal justice system has evolved significantly from ancient societies focused on retribution to modern systems emphasizing rehabilitation and fairness. Ancient Babylon's Code of Hammurabi introduced formalized laws, while the Enlightenment period highlighted individual rights. Today, the system combines law enforcement, judicial processes, and corrections, striving for justice and social order.