The Hammurabi Code, from ancient Babylonia around 1754 BC, is one of the earliest and best-preserved written law codes. Enacted by King Hammurabi, its decrees, famously including "an eye for an eye," offered a glimpse into early legal principles and societal structure. This monumental text shaped justice for centuries.