The phrase “an eye for an eye” comes from the Code of Hammurabi. So does the concept of legal presumption of innocence, the idea of a minimum wage, and the world’s first known rules against medical malpractice. When you look at what Hammurabi actually wrote in 1754 BC, most of the surprises are how modern it feels.

Here is what the Code actually says, why it mattered, and where you can still see the seven-foot basalt stele it was carved into. For context see our Babylon post.

Who Hammurabi was

Hammurabi was the sixth king of the First Babylonian Dynasty, reigning from about 1792 to 1750 BC. He inherited a small city-state and, over 42 years, built it into an empire that controlled all of southern Mesopotamia. His empire fell apart within a generation of his death, but the law code he issued in about the 30th year of his reign outlived Babylon itself.

He was not the first Mesopotamian ruler to issue a law code. The earlier codes of Ur-Nammu (c. 2100 BC) and Lipit-Ishtar (c. 1930 BC) survive in fragments. Hammurabi’s code was much longer, more comprehensive, and — crucially — was preserved almost complete because it was carved into a stone stele that survived being carted off as war loot 600 years later.

What the Code actually contains

The Code has 282 numbered laws (a few are damaged and missing), covering:

  • False accusation and perjury
  • Theft and receipt of stolen property
  • Robbery, kidnapping and murder
  • Property crime and boundary disputes
  • Contracts, loans and debt
  • Marriage, divorce, inheritance and adoption
  • Sexual assault and adultery
  • Assault, injury and homicide
  • Professional liability — doctors, veterinarians, builders, boatmen
  • Slave law
  • Wages, prices and rentals

The prologue and epilogue are religious — Hammurabi presents himself as chosen by the gods to bring justice. The core is entirely practical.

“An eye for an eye”

The most famous provision is Law 196: “If a man puts out the eye of another man, his eye shall be put out.” This is lex talionis — the law of equivalent retaliation. Modern readers often see it as barbaric, but its purpose was actually to limit retaliation, not to permit it. Before written law, injury could trigger open-ended blood feuds; the Code says the maximum punishment matches the offence exactly, no more.

The rule is also class-based. Eye-for-eye applies between men of the same social class. If a nobleman injures a commoner, the punishment is a fine (Law 198). If he injures a slave, it’s half the slave’s market value (Law 199). Egalitarianism is not the goal; predictability is.

The first minimum wage

Laws 257-274 set standardised wages for different occupations:

  • Field labourer — 8 gur (about 2,400 litres) of grain per year
  • Ox driver — 6 gur per year
  • Herdsman — 8 gur per year, plus responsibility for lost animals
  • Boatman renting a boat — 3 gur per year
  • Carpenter, weaver, tailor, bronze-smith — 5 grains of silver per day

These are not maximums or minimums separately — they are set rates. Hammurabi wanted a predictable economy. The Code also sets fixed prices for grain, oil and wool, and fixed interest rates on loans (20% per year on silver, 33% on grain).

Professional liability

Some of the most striking laws in the Code deal with what we would now call malpractice. Law 218: “If a physician makes a large incision with an operating knife and kills the patient, or opens a tumour and destroys the eye, his hands shall be cut off.” Law 229: “If a builder builds a house and does not construct it properly, and the house he built falls in and kills its owner, then that builder shall be put to death.”

Modern readers wince, but the underlying principle is legally significant: professionals are accountable for their work, and negligence has real consequences. It is nearly 4,000 years before the modern concept of tort liability appears in Western law.

Women in the Code

The Code treats women as legal persons with property and inheritance rights, though not as equals of men. Women could own land, run businesses, initiate divorce (though only under specific circumstances), and inherit from their fathers. A woman abandoned by her husband kept the household property; a woman divorced without cause got her dowry back.

Adultery is punished by drowning both parties, unless the husband forgives his wife (in which case the king must also forgive the man). The code protects wives against unfounded accusations: Law 131 requires evidence for adultery accusations, and Law 132 lets an accused wife clear herself by swearing an oath.

The stele

The Code was inscribed on a 2.25-metre basalt stele — a tapered upright slab — topped by a relief of Hammurabi standing before the sun god Shamash, receiving the laws. Copies of the text were also written on clay tablets and distributed across the empire; some of these survive in fragments.

The main stele stood in Babylon’s Esagila temple until around 1150 BC, when the Elamite king Shutruk-Nahhunte sacked Babylon and hauled it back to his capital Susa (modern Shush, southwestern Iran) as war loot. He carved out about seven columns of the text to inscribe his own name, but died before finishing the job.

The stele stayed at Susa, mostly forgotten, for 3,000 years. In 1901 a French expedition led by Jacques de Morgan found it during excavations at Susa. It was shipped to the Louvre in Paris, where it has been on display ever since.

Where to see it today

  • Louvre, Paris — the original stele, in the Near East wing (Room 227). Free of charge on the first Sunday of each month.
  • Iraq Museum, Baghdad — cuneiform copies of the Code on clay tablets, plus other Old Babylonian legal texts
  • Babylon itself — the modern site does not have any original Code fragments, but the layout of the Esagila temple where the stele stood is visible

The Code has been continuously translated since Jean-Vincent Scheil published the first French translation in 1902. Full English translations are freely available online through the Yale Avalon Project.

Frequently asked questions

What is the Code of Hammurabi?
A set of 282 laws issued by King Hammurabi of Babylon around 1754 BC, carved onto a 2.25-metre basalt stele. It covers everything from theft and murder to wage rates, marriage law and professional liability. It is the earliest essentially complete legal code known from human history.
What is “an eye for an eye”?
The principle of lex talionis — the law of exactly equivalent retaliation. Law 196 of Hammurabi’s Code says “If a man puts out the eye of another man, his eye shall be put out.” Its purpose was actually to limit retaliation to the exact offence, not to encourage it — preventing open-ended blood feuds by setting a predictable maximum punishment.
Where is the original Code of Hammurabi today?
In the Louvre in Paris, Near East wing (Room 227). It was carried off as war loot from Babylon to Susa (Iran) around 1150 BC, was rediscovered by a French archaeological expedition in 1901, and has been at the Louvre since 1902.
Was Hammurabi’s Code the first law code?
No — earlier Mesopotamian codes survive in fragments, including Ur-Nammu’s (c. 2100 BC, about 400 years earlier) and Lipit-Ishtar’s (c. 1930 BC). But Hammurabi’s Code is much longer, more comprehensive, and — because it was carved into stone — has survived essentially complete, which the earlier codes have not.
Did Hammurabi’s laws apply equally to everyone?
No. The Code recognises three social classes — free landowners, commoners and slaves — and punishments vary depending on which class the victim and offender belong to. “Eye for an eye” applied only between men of the same class. Injuries done by a noble to a commoner or slave were punished by fines. Predictability, not equality, was the goal.
What was the punishment for medical malpractice in Hammurabi’s Code?
For a physician whose surgery killed a patient or destroyed an eye, Law 218 prescribes that “his hands shall be cut off”. Builders whose houses collapsed and killed the owner were themselves executed (Law 229). Ancient Mesopotamia had no tort law in the modern sense, but professionals were held to strict accountability for their work.


🌍
Explore Every Country
Travel guides, itineraries and visa help for every destination.