Around this era, the reign of Babylonian King Hammurabi, whose codified laws of retribution shaped Mesopotamian justice, drew to a close, leaving one of history's earliest written legal systems.