What Justice Actually Looked Like in Ancient Babylon
A seven-foot stone pillar, buried for three thousand years, turned out to hold one of the earliest detailed law codes ever found — and it treated people very differently depending on rank.

Hammurabi ruled Babylon from around 1792 to 1750 BC, and today he is remembered for one thing above everything else he did as king: a set of 282 laws carved into a seven-foot stone pillar, or stele, and set up in public where anyone could see them. It wasn’t the first written law code in Mesopotamia — the Code of Ur-Nammu predates it by roughly three centuries, and an even earlier, fragmentary code from Urukagina goes back further still — but Hammurabi’s is the longest and most detailed to survive, and it’s the one that shaped how later societies thought about writing law down at all.
The pillar itself vanished from Babylon around 1150 BC, carried off more than 200 miles east to the city of Susa by a conquering king, apparently as a trophy. It sat there, buried, for roughly three thousand years, until French archaeologists excavating Susa rediscovered it in 1901. Persia at the time lacked the resources to preserve or study it and allowed the foreign team to remove what they’d found — which is how a monument to a Babylonian king ended up on permanent display at the Louvre in Paris, where it remains today.
What "an eye for an eye" actually meant
Two of the code’s laws are the direct source of the phrase most people know: if a man put out the eye of another, his eye was to be put out; if he knocked out another man’s teeth, his own teeth were to be knocked out. This principle — punishment matched exactly to the harm done — is called lex talionis, and in context it was less brutal than it sounds today. Before codes like this, justice in Mesopotamia was largely a private matter: an injured family took revenge as it saw fit, which could spiral into ongoing blood feuds with no natural stopping point. Hammurabi’s code put a hard ceiling on that retaliation — you could demand exactly the harm done back, and no more. It was a limit on vengeance dressed up as a punishment.
The law changed depending on who you were
What the code does not do is treat everyone the same. Babylonian society recognized three broad classes — the amelu (the elite, free landowning class), the mushkenu (a free but lower-status commoner class), and the ardu (enslaved people) — and the punishments in the code shift by class for what was otherwise the identical offense. A crime against a member of the amelu class typically carried a harsher penalty than the same act committed against a mushkenu or an ardu. So "an eye for an eye" was really "an eye for an eye, unless the eyes belong to people of different rank," which is a much less tidy idea than the phrase alone suggests. Women, notably, did hold real legal standing under the code — they could own and sell property and could obtain a divorce, rights that weren’t universal across the ancient world at the time.
Trials themselves put the burden of proof squarely on the person bringing the accusation: an accuser had to physically produce the accused in front of the court rather than relying on a summons. And where evidence was thin, Babylonian law leaned on an idea familiar from other early legal systems — trial by ordeal. Several of Hammurabi’s laws describe an accused person jumping into the Euphrates to settle a disputed case: survival meant innocence, drowning meant guilt, on the belief that the river’s outcome reflected the will of the gods rather than chance.
Told as an illustrated story
Frequently Asked Questions
Did Hammurabi actually invent the phrase "an eye for an eye"?
The phrase is a modern paraphrase of two specific laws in his code — one covering eyes, one covering teeth — which together describe the principle of lex talionis, punishment matched exactly to the harm done. The wording as commonly quoted today comes from later translations, not the original cuneiform text itself.
Was Hammurabi’s Code the first written law code in history?
No. It was predated by the Code of Ur-Nammu, from roughly three centuries earlier, and by the fragmentary Code of Urukagina, which is older still. What makes Hammurabi’s code significant is that it survives as the longest and most complete legal text from the Old Babylonian period, not that it came first.
Did Babylonian law really punish people differently by social class?
Yes. The code recognized three legal classes — free elites, free commoners, and enslaved people — and penalties for the same offense commonly differed depending on the class of the person harmed. It’s one of the clearest ways the code shows that ancient justice was not applied as an equal, one-size-fits-all standard.