Esperaunce

A tall black stone pillar, rounded at the top, carved with a relief of two figures above and dense lines of cuneiform below.

Mesopotamia · Government and Law

Two hundred and eighty-two rules

Photograph by Mbzt, CC BY 3.0, via Wikimedia Commons. Louvre.

The Archives/Mesopotamia/Government and Law

If a builder builds a house badly and it collapses and kills the owner, the builder shall be put to death. If it kills the owner’s son, the builder’s son shall be put to death.

The stele stands over two metres high, carved from a single block of black basalt. At the top, a king stands before a seated god who holds out a rod and a ring. Below that, in beautifully cut Akkadian, run nearly three hundred rulings.

It was set up in public in Babylon around 1750 BCE. Six hundred years later an Elamite king carried it off as loot to Susa, which is where French archaeologists found it in 1901. It is the most famous legal document from the ancient world, and almost everything the general reader knows about it needs qualifying, including whether it is a legal document at all.

❦

On this page

What it actually contains

The rulings are not organised the way a modern code is, and they are not abstract principles. Each takes the form of a case: if such a thing happens, then such a thing follows. There are no definitions, no general statements of principle, and no procedural rules.

The subjects run across ordinary life. False accusation. Theft. Kidnapping. Harbouring a runaway slave. Burglary. Looting at a fire. Military service and the land held for it. Tenancy, irrigation and damage to a neighbour’s field. Loans, interest and debt. Deposits and their return. Marriage, dowry, divorce and adultery. Inheritance. Adoption. Assault. Medical fees and medical malpractice. Building. Boat hire. Agricultural wages. The sale and price of slaves.

It is a workmanlike list of the things that actually go wrong between people, and it is startlingly specific. There are rulings on what happens if a boat hired for a journey is wrecked, on the fee for setting a broken bone, and on the wages of a seasonal labourer.

The famous parts

Two features have made the code notorious and both need context. The first is the principle of retaliation. If a man destroys the eye of another man, his own eye shall be destroyed. If he breaks a bone, his bone shall be broken.

That is where the phrase an eye for an eye comes from, and it enters the Hebrew Bible in a similar form several centuries later. The second is the class structure. The code recognises three categories of person: the awilum, a free man of standing; the mushkenum, whose exact status is argued about and who sits below him; and the wardum, a slave.

The penalties change with the class of both parties. Destroying the eye of an awilum costs an eye. Destroying the eye of a mushkenum costs silver. Destroying the eye of another man’s slave costs half the slave’s value, paid to the owner.

So the retaliation principle applies between equals, and between unequals it becomes compensation. What looks like savagery is partly a rule about who counts.

Whether it was law

Here the picture changes, and this is the part general accounts usually miss. Thousands of Mesopotamian legal documents survive: contracts, court records, judgements, petitions. If the code were the operative law, we would expect it to be cited.

It is not. No court record cites the code. No judge refers to it. No contract invokes it. In over a thousand years of legal documents, the stele appears to have been ignored by the people doing the law.

Worse, the actual judgements sometimes contradict it. Several explanations compete. The code may be a royal monument advertising Hammurabi as a just king rather than a working statute. It may be a scholarly compilation of model cases, used in scribal training, which would explain why copies of it were still being made a thousand years later in schools. Or it may describe a customary practice that judges knew and did not need to cite.

The prologue and epilogue support the first reading strongly. They are long, they are in elevated language, and they say that the gods called Hammurabi to make justice appear in the land and to prevent the strong from oppressing the weak. That is a claim about the king, not an enacting formula.

Ur-Nammu came first

Hammurabi gets the credit and he was not the first. The Code of Ur-Nammu, from the Third Dynasty of Ur, is around three centuries older, dating to about 2100 BCE. It survives in later copies and is incomplete.

Orange clay tablets and fragments on stands in a museum case, with printed labels in front of them.
Tablets in Istanbul, among them copies of the laws of Ur-Nammu and of Hammurabi. Ur-Nammu’s laws are about three centuries older than Hammurabi’s stele.Photograph by David Berkowitz, CC BY 2.0, via Wikimedia Commons. Istanbul Archaeology Museums.

It is Sumerian, it has a prologue in the same style, and its rulings are structured the same way. The striking difference is the penalties. Where Hammurabi prescribes physical retaliation, Ur-Nammu frequently prescribes silver. If a man knocks out another man’s eye, he pays a weight of silver. If he knocks out a tooth, he pays less.

That has an uncomfortable implication for anybody who assumes legal history moves from brutality towards compensation. Here it moves the other way: the older code is the more monetary one, and the more famous later code brings in mutilation. Other codes sit between them, including the laws of Lipit-Ishtar and the laws of Eshnunna, so the tradition is a genre rather than a sequence of reforms.

What the rulings assume

Read as evidence about society rather than as law, the code is extremely informative. It assumes a society with private property in land, with tenancy and sharecropping, with irrigation that needs maintaining and that causes disputes when neglected. It assumes commercial credit, interest, partnership and long-distance trade with agents.

It assumes a class of soldier-tenants holding land in return for service, with rules about what happens when a man is captured. It assumes women with legal personality: they hold dowries, they can inherit, they bring cases, they can divorce in specified circumstances, and priestesses appear with particular property rights. And it assumes a state that can enforce. The penalties are severe and they require somebody to carry them out.

Medicine and liability

One cluster of rulings deserves its own note because it is so modern in shape. A surgeon who performs an operation with a bronze lancet and saves a man’s life receives a fixed fee. The fee varies by the class of the patient.

A surgeon who performs the same operation and the patient dies has his hand cut off. If the patient was a slave, he replaces the slave. That is professional liability with a fee schedule attached, in the eighteenth century BCE, and it has been read as evidence that medicine was a paid trade with defined standards and real risk.

Whether any surgeon’s hand was ever removed under it is another question, and given the general unenforceability of the code, probably not.

The stele as an object

The physical thing carries a message of its own. Basalt is hard, dark and imported, which makes it expensive and permanent. The carving is superb. The text is cut in an archaising script, deliberately old-fashioned, which gives the document the weight of tradition.

A close view of dark polished stone cut with rows of cuneiform signs in ruled columns.
The text of the stele of Hammurabi. It is cut in a script that was already old-fashioned when the stele was made.Photograph by Rmashhadi, public domain, via Wikimedia Commons. Louvre.

The relief at the top shows Hammurabi standing before Shamash, the sun god and the god of justice, receiving the rod and ring that symbolise authority. The king is standing, not kneeling, which places him as the god’s agent rather than his supplicant. The epilogue curses anybody who damages the monument or erases the text, at considerable length and with impressive specificity.

Copies existed. Fragments of the code have been found at several sites, and it was still being copied by scribes over a thousand years later, which is the strongest evidence for the scribal-curriculum reading.

How law actually worked

Since the code was not being cited, it is worth setting out what the working legal system looked like, because the documents are abundant. Cases were heard by local bodies: a city assembly, a group of elders, a temple official, or a royal judge. The venue depended on the matter and the parties.

A square reddish clay tablet with closely written lines of cuneiform, its corners slightly rounded.
A legal decision given by appointed judges, written at the Assyrian merchant colony of Kanesh in the twentieth or nineteenth century BCE. Records like this, kept by the winning party, are how the working law is known.Metropolitan Museum of Art, New York, CC0.

Evidence was oral testimony, witnesses, and above all written documents. A contract sealed and witnessed was extremely strong evidence, and a great many surviving tablets are precisely such contracts, preserved because they might be needed. Where evidence failed, the oath was used. A party swearing by a god in a temple settled a matter, and the seriousness with which oaths were taken is itself evidence about belief.

The river ordeal appears in the code and in practice. A person accused of sorcery or adultery could be thrown into the river, and survival was acquittal. Judgements were written down, sealed and given to the winning party, and a losing party could sometimes appeal to the king.

That is a functioning legal system with courts, evidence, documentation and appeal, running for centuries, and the stele in the square was not part of its machinery.

Punishment

The penalties across the tradition are worth setting out plainly, because the code is not representative of what actually happened. Death is prescribed in the code for about thirty offences, including theft from a temple, receiving stolen goods, harbouring a runaway slave, adultery by a wife, and negligence that kills. Mutilation appears: hands, ears, tongues and eyes.

Fines in silver are the commonest penalty in practice, across the surviving court records, including for offences the code treats capitally. Debt slavery was a normal consequence of default, with a limit in the code of three years’ service before release. The gap between the code’s severity and the records’ fines is one more argument that the stele was a statement about royal justice rather than a schedule that judges worked from.

What it is good for

The code’s real value is not as legislation. It is the fullest single statement of what an early second-millennium Mesopotamian state thought the relations between people ought to be. That is worth a great deal.

It supplies a vocabulary of legal categories, and it shows the classes, the family structure and the economic arrangements that the rest of the documentary record confirms in practice, which Interest, silver and debt follows up. And it establishes a tradition of the king as lawgiver that runs forward through the Near East and into the biblical material, where the covenant code in Exodus is structured in the same case-based form and shares several specific rulings.

The claim Hammurabi makes in his epilogue, that he acted so the strong should not oppress the weak, is the best-known early statement of a purpose for law. Whether he meant it is unknowable, and Ur-Nammu had said much the same three centuries earlier.

Sources

Ancient

  • The stele of Hammurabi and the surviving copies and fragments of the code
  • The Code of Ur-Nammu, the Laws of Lipit-Ishtar and the Laws of Eshnunna; the surviving Mesopotamian court records and contracts
  • The covenant code of Exodus, for the later parallel tradition

Modern

  • Martha T. Roth, Law Collections from Mesopotamia and Asia Minor, 2nd edition, 1997
  • Marc Van De Mieroop, King Hammurabi of Babylon: A Biography, 2005
  • Raymond Westbrook, editor, A History of Ancient Near Eastern Law, 2003
  • Amélie Kuhrt, The Ancient Near East c. 3000 to 330 BC, 1995
  • Gwendolyn Leick, Mesopotamia: The Invention of the City, 2001

New civilisations are announced by email as they are written.

Passages may be quoted with my name and a link to the page, and copies may be handed out in a classroom, lecture or study group as long as the site’s name stays on them. Please ask first before republishing a whole essay or Archives page, translating one, or using the writing in anything that is sold. Use for training machine-learning systems is not permitted. The details are on Using this site.

Images are credited individually; rights remain with their holders.

© 2026 Esperaunce. All rights reserved.