§ Lex Bibliotheca
A Legal Library

The Code of Hammurabi: The First Great Written Law

Legal History · 3 min read

Around 1754 BCE the Babylonian king Hammurabi ordered a collection of royal judgments engraved on a pillar of black diorite more than two meters tall. Written in Akkadian cuneiform and crowned by a relief showing the king before Shamash, god of the sun and justice, the monument gathered about 282 provisions on the worries of a busy commercial society. Excavators found the stele in 1901 at Susa, where ancient raiders had carried it as booty.

Calling it the first law code needs a caveat. Older Sumerian collections, above all the laws of Ur-Nammu around 2100 BCE and of Lipit-Ishtar three centuries later, already set rules in writing. What sets this monument apart is its scale, its preservation, and its self-presentation: a king announcing that justice is the central task of his reign. Here written law becomes a public instrument of government.

The provisions are casuistic in form: if a man does this, then that shall follow. The pattern suggests records of decided cases or model disputes rather than abstract commands, and it presumes a stratified society of free persons, commoners, and slaves, with penalties shifting sharply according to the rank of offender and victim alike.

Key Points

Commerce, family, and the price of injury

The code reads like a tour through a bronze age city's worries. It fixes wages for artisans and field hands, fees for surgeons, and freight rates for boatmen. It regulates loans, deposits, and partnerships, and it threatens tavern keepers who cheat customers. Builders hold a notorious place: if a new house collapses and kills its owner, the builder dies. Family rules govern betrothal gifts, dowries, divorce, adoption, and inheritance, guarding the household's property as carefully as its people.

For bodily injuries the code applies measured retaliation.

An eye for an eye, a tooth for a tooth.

The principle sounds harsh, yet it marked an advance: vengeance became a tariff rather than a feud, and the state claimed a monopoly on fixing the measure. But mercy stopped at class lines. Destroy a free man's eye and lose your own; destroy a commoner's eye and pay silver; destroy a slave's eye and compensate his owner, as with any damaged property. Equality before the law was not yet part of the idea.

Law as royal theater

The rules sit inside a prologue and epilogue of real literary force. Hammurabi announces that the gods named him to make justice shine in the land and to destroy the wicked, so that the strong should not oppress the weak. The epilogue invites any wronged man to approach the stele, have the words read aloud, and find his case. Whatever its courtroom use, the monument was a triumph of publicity.

Why it still matters

The stele rewards modern readers because so many of its problems remain ours: defective buildings, unpaid debts, false accusation. Its answers belong to a world of hierarchy and trial by ordeal, yet the underlying ambition, to publish predictable consequences in advance, still defines any legal system that prizes notice over whim. The code does not limit the king; it glorifies him. Even so, by carving law into stone, Hammurabi opened a conversation about rules, rulers, and accountability that has never ended. This overview is educational and not legal advice.

← Back to the library