What Did Hammurabi Do? Code of Laws Explained
Who Was Hammurabi?
Hammurabi was the sixth king of Babylon, ruling from 1792 to 1750 BCE. He inherited a small kingdom and turned it into an empire that controlled most of Mesopotamia. His name means "the king who makes peace happen" in Akkadian.
He wasn't born into power through conquest alone. His father, Sin-Muballit, handed him Babylon when it was just one city-state among many. Hammurabi spent decades fighting wars, negotiating treaties, and building infrastructure until he controlled everything from the Persian Gulf to Assyria.
He died around 1750 BCE, and his empire collapsed within a generation. But his legal code survived.
What Was the Code of Hammurabi?
The Code of Hammurabi is a stone monument covered in Akkadian cuneiform script. It contains 282 laws with detailed case-by-case rulings. The stele was discovered in 1901 by French archaeologists in Susa, Iran (where it had been taken as war loot by Elamites).
The top of the stele shows Hammurabi standing before Shamash, the sun god and god of justice. Shamash appears to be handing Hammurabi the laws. This wasn't just decoration—it was propaganda. Hammurabi claimed divine authority for his legal system.
Why Did He Create It?
Governing a diverse empire required consistent rules. Different city-states had different customs. Merchants traveling between regions needed predictable justice. Land disputes, debts, and crimes threatened stability.
The code standardized punishment and compensation across Babylon's territories. It wasn't the first legal code in human history—Sumerian kings had issued laws before—but it was the most comprehensive at the time.
The "Eye for an Eye" Principle
Most people know Hammurabi's code for the lex talionis principle: an eye for an eye, a tooth for a tooth. But this gets misunderstood.
The actual principle was about proportional punishment. If you broke a free man's bone, your bone got broken. If you knocked out a slave's tooth, you paid a fine to the slave's owner. The punishment fit the crime—and the social class of the victim.
Class mattered enormously in Hammurabi's system. Three classes existed: free persons (awilum), dependent persons (mushkenum), and slaves (wardum). A noble's life was worth more than a commoner's, which was worth more than a slave's.
- Killing a noble: death penalty
- Killing a commoner: monetary compensation
- Killing a slave: only a fine to the owner
This wasn't fairness as we understand it today. It was a rigidly hierarchical system where your worth was determined by birth.
What the Laws Actually Covered
The code dealt with everyday situations that any ancient society would face:
Trade and Commerce
Merchants operated in a time before notaries or banks. If a merchant's agent accepted goods and then claimed the goods were stolen, the merchant could disown the debt. This protected merchants from fraudulent employees but also created risks for buyers who had no recourse if an agent ran off.
Interest rates were regulated. Grain loans could carry up to one-third interest per year. Silver loans carried up to one-fifth. If a borrower couldn't repay, they or their family could be sold into slavery to recover the debt.
Property and Land
Land ownership came with obligations. If you received land from the king, you owed military service. If you couldn't serve (captured, disabled, or aged out), your son took over. If no son existed, the land could be reassigned.
Renters and sharecroppers had specific protections. A tenant who planted their own crops on rented land kept a portion of the harvest. But if they neglected the land, they paid a penalty.
Family Law
Women had limited rights but weren't completely powerless. A wife could demand divorce if her husband neglected her or was cruel. She received her dowry back. However, if a wife was caught committing adultery, both parties could be thrown into the river. (The river ordeal was meant to determine guilt through divine judgment.)
Inheritance went through the male line. Daughters received dowries but not equal shares. Widows had some protections—property could be held in trust for children—but widows could also be remarried to new husbands.
Medical Practice
Doctors were held to professional standards. If a noble died under a surgeon's knife, the surgeon's hands were cut off. If a slave died, the surgeon paid a replacement cost. Successful surgeries earned standard fees.
This seems barbaric by modern standards, but it established early malpractice principles. Bad doctors faced consequences. Good doctors got paid.
How It Compared to Other Ancient Legal Systems
The Code of Hammurabi wasn't unique. Other Near Eastern cultures had legal codes:
| Code | Origin | Approx. Date | Known Laws |
|---|---|---|---|
| Code of Ur-Nammu | Sumer | 2100 BCE | ~30 |
| Code of Lipit-Ishtar | Isin | 1930 BCE | ~38 |
| Statutes of the Hittites | Hittite Empire | 1650 BCE | ~200 |
| Code of Hammurabi | Babylon | 1754 BCE | 282 |
Hammurabi's code was the longest and most detailed. It borrowed ideas from predecessors but synthesized them into something more comprehensive. Later Assyrian and Hittite codes show direct influence from Babylon.
What the Code Didn't Say
The code wasn't a complete legal handbook. It didn't cover every possible situation. Many transactions relied on verbal contracts or witness testimony that went unrecorded.
It also didn't apply equally to everyone. Women, children, and slaves had fewer protections than free male citizens. Religious minorities, foreigners, and the disabled faced additional restrictions.
The laws reflected Babylonian values and social structure, not universal justice. Calling it "fair" ignores whose interests it served.
How to Read the Stele Today
The stele stands about 7.5 feet tall and is made of black diorite—one of the hardest stones available. This wasn't accidental. Hammurabi chose an indestructible material to ensure his laws lasted forever.
It didn't work. The original stele is in the Louvre. Copies exist in museums worldwide. The laws have been translated into every major language.
If you visit the Louvre, the stele is in the Near Eastern Antiquities section. The cuneiform is still legible. You can read Hammurabi's preamble (a long boast about his accomplishments) and epilogue (prayers for future kings to preserve the laws) alongside the actual statutes.
The Code's Legacy
Ancient Mesopotamian law influenced Hebrew Bible law and Greek legal thought. Whether Moses knew about Hammurabi's code is debated, but similarities exist in structure and content.
Modern law doesn't descend directly from Hammurabi. Roman law, English common law, and Napoleonic codes have their own lineages. But the idea that rulers should publish clear laws and apply them consistently—that idea has roots in ancient Babylon.
The code also showed that complex societies need written rules. Oral tradition breaks down when populations grow and transactions become complicated. Hammurabi recognized this and built a system that survived his kingdom.
What Hammurabi Actually Achieved
Hammurabi unified Mesopotamia under one administration. He built canals, temples, and city walls. He standardized weights and measures across his territory. He created a bureaucracy that could collect taxes and administer justice.
The legal code was part of this project. It legitimized his rule, protected property rights, and resolved disputes before they became wars. Whether you see it as enlightened governance or cynical control depends on your perspective.
What matters is that the code existed and influenced everything that came after. Ancient civilizations in Egypt, Greece, and Rome all developed their own legal systems, but they built on foundations laid in Mesopotamia—including Hammurabi's stele.