The Code of Hammurabi: The World's Oldest Complete Legal System
March 28, 2026 · 4 min read
The Fact
The Code of Hammurabi, created around 1754 BC, is one of the world's oldest and most complete legal codes.
A Stone That Changed History
In the winter of 1901 to 1902, a French archaeological expedition working at the ancient site of Susa in modern Iran unearthed a large black diorite stele in three pieces. When reassembled, it stood 2.25 meters tall. Near its top, carved in relief, Hammurabi — king of Babylon — stands before the sun god Shamash, who hands him the rod and ring of royal authority, the symbols of justice. Below this image, covering almost the entire surface of the stele, are 282 laws written in cuneiform Akkadian. The stele had been taken to Susa as war booty by an Elamite king in the 12th century BC and had lain buried for three millennia. Today it stands in the Louvre in Paris, the most complete surviving ancient legal text.
Hammurabi ruled Babylon from approximately 1792 to 1750 BC, overseeing its transformation from a minor city-state into the dominant power of Mesopotamia. The code inscribed on the stele represents the culmination of centuries of Mesopotamian legal tradition — earlier law codes from the Sumerians and Akkadians preceded it — but Hammurabi's is the most extensive and best preserved from the ancient Near East.
What the Laws Actually Say
The code addresses an impressively wide range of social and economic situations. It begins with criminal matters: laws governing theft, burglary, and the harboring of runaway slaves. It then turns to matters of property and commerce: regulations for merchants, interest rates on loans, wages for various forms of labor, and liability for property damage. Laws governing agriculture establish compensation for crop damage and set rental rates for fields. The code addresses family law in detail: marriage contracts, divorce, inheritance, the rights of adopted children, and the obligations of fathers to their sons.
Several laws address professional standards and liability in ways that feel surprisingly modern. A physician who kills a patient through incompetent surgery can have his hand cut off. A builder whose house collapses and kills the owner is executed; if it kills the owner's son, the builder's son is killed. These punishments reflect what is now called the lex talionis principle — "an eye for an eye" — which the code applies with a logic tied to social status. The punishment for injuring a free man differs from the punishment for injuring a slave; the compensation owed to a nobleman differs from that owed to a commoner.
The Purpose of Publicizing the Law
A key feature of the code is its public nature. The laws were inscribed on a stele intended to be set up in a public place — a temple courtyard or city square — where they could be read by anyone literate in Akkadian. The prologue to the code makes Hammurabi's intention explicit: to establish justice in the land, to destroy the wicked and evil, so that the strong might not oppress the weak. Whether this was genuine social policy or political rhetoric — or both — the act of publishing the law in a form accessible to subjects represented a significant step in the idea that law should be consistent, knowable, and not simply the arbitrary will of the ruler.
The Code's Place in Legal History
The Code of Hammurabi did not invent law — legal systems existed in Sumer before Babylon's rise — but it represents the most complete surviving evidence of how a sophisticated Bronze Age society organized its social and economic relationships through explicit rules. The conceptual infrastructure it embodies — that transactions should be documented, that contracts should be enforceable, that injuries should have specified remedies, and that law should apply consistently across cases — forms the foundation on which all subsequent legal systems, including those of the modern world, are built. Reading the code, separated from our time by nearly four thousand years, one recognizes not alien thinking but a familiar attempt to solve a problem that has never gone away: how to make a complex society function fairly.
FactOTD Editorial Team
Published March 28, 2026 · 4 min read
The FactOTD editorial team researches and verifies every fact before publication. Our mission is to make learning effortless and accurate. Learn about our process →