Hammurabi’s Code of Laws: Punishments, Class, and Legacy

Hammurabi’s Code of Laws is a collection of 282 rules carved into a black stone pillar around 1750 BCE by King Hammurabi of Babylon, making it one of the most complete legal documents surviving from the ancient world. The laws cover violent crime, theft, property, professional negligence, wages, marriage, and inheritance, and they applied punishments that were proportional to the offense but also calibrated to the social rank of the people involved. Hammurabi commissioned the code to unify legal standards across his Mesopotamian empire, stating openly that his purpose was to prevent the powerful from oppressing the weak.

What the Code Actually Is

The laws were inscribed on a pillar of black diorite standing over seven feet tall. The text is written in cuneiform script in the Babylonian dialect of Akkadian, the spoken language of ordinary Babylonians rather than the Sumerian traditionally reserved for scholars and priests. At the top of the pillar, a carved relief shows Hammurabi standing before Shamash, the sun god and patron of justice, who extends a rod and ring to the king as symbols of authority and the power to measure justice.

A French archaeological expedition led by Jacques de Morgan uncovered the stele in the winter of 1901–1902 at the ancient city of Susa in what is now southwestern Iran.1History of Information. The Code of Hammurabi, Discovered in Khuzestan, Iran It has been on display at the Louvre Museum in Paris since 1904.2Louvre. The Code of Hammurabi

The 282 laws are framed by a prologue in which Hammurabi claims the supreme gods Anu, Enlil, and Marduk selected him to bring justice to the land, and an epilogue instructing that any wronged citizen could approach the stele, read the relevant law, and find justice.3The Avalon Project. Babylonian Law – The Code of Hammurabi That instruction is one of the code’s most enduring ideas: laws should be publicly available to the people they govern.

The Eye-for-an-Eye Principle

The code’s most famous feature is its reliance on retributive justice, known as lex talionis. The punishment mirrored the harm. Law 196 states that if a man destroys the eye of another man of equal rank, his own eye is destroyed in return.4Hanover Historical Texts Project. Hammurabi’s Code of Laws Law 197 applies the same logic to broken bones: break someone’s bone, and yours gets broken.5Washington State University. The Code of Hammurabi Law 200 prescribes the loss of a tooth for knocking out the tooth of someone of the same social standing.6Center for Online Judaic Studies. The Code of Hammurabi, c. 1760 BCE

This retaliation principle only tells half the story, though. It applied cleanly between people of equal rank. Once a case crossed class lines, the rules changed.

How Social Class Changed the Punishment

Babylonian society recognized three tiers: the awilu (landowning elite), the mushkenu (free commoners), and the wardu (enslaved persons). When a crime crossed those lines, the punishment shifted from physical retaliation to monetary payment.

Law 198 provides the clearest example. If an elite man blinded or broke the bone of a commoner, he paid one mina of silver rather than losing his own eye.5Washington State University. The Code of Hammurabi Law 199 reduced the penalty further when the victim was enslaved: the perpetrator paid half the person’s monetary value to the owner.4Hanover Historical Texts Project. Hammurabi’s Code of Laws

The same tiered logic ran through the medical provisions. A surgeon who successfully treated an elite patient earned ten shekels, but the fee dropped to five shekels for a commoner and two shekels for an enslaved patient.7The Avalon Project. Code of Hammurabi Justice under the code was proportional, but proportional to social rank rather than any concept of universal equality. The code protected the existing hierarchy more than it challenged it.

Rules for Professionals: Surgeons and Builders

Some of the code’s most striking provisions read almost like an ancient malpractice framework. Law 218 states that if a surgeon made a deep incision with an operating knife and killed the patient, or destroyed the patient’s eye during an operation, the surgeon’s hands were cut off.7The Avalon Project. Code of Hammurabi The punishment targeted the instrument of the harm.

Builders faced the retaliation principle directly. Law 229 addresses a builder who constructs a house so poorly that it collapses and kills the owner: the builder is put to death.7The Avalon Project. Code of Hammurabi The rule was not just punitive. It served as a deterrent against shoddy workmanship in a society where construction failures could be catastrophic.

Theft, Property, and False Accusations

The code treated theft as a serious offense with penalties scaled to the target. Law 6 mandated death for stealing from a temple or the royal court, and the same penalty applied to anyone who knowingly received the stolen property.7The Avalon Project. Code of Hammurabi Stealing livestock from a temple or court required the thief to repay thirty times the value; stealing from a common citizen required tenfold repayment. If the thief could not pay, the penalty was death.

The code took documentation seriously. Law 7 states that anyone who bought property from another person’s son or slave without witnesses or a written contract was treated as a thief and executed.7The Avalon Project. Code of Hammurabi Burglary drew a dramatic punishment: Law 21 provides that a person caught breaking into a house was killed and buried in the hole they had made.

The rules against reckless litigation were equally sharp. Law 1 provides that anyone who brought a criminal accusation and failed to prove it was put to death. Law 3 extends this to capital cases: falsely accusing someone of a crime punishable by death meant the accuser faced that same death penalty.7The Avalon Project. Code of Hammurabi

When human testimony could not settle a dispute, the code turned to divine judgment. Law 2 describes what happened when someone was accused of sorcery: the accused threw themselves into the Euphrates River. If the river drowned them, guilt was confirmed and the accuser took their house. If the accused survived, they were declared innocent, and the accuser was put to death, forfeiting their house to the person wrongly accused.7The Avalon Project. Code of Hammurabi The stakes ran both directions, which created a strong incentive against filing frivolous claims.

Marriage, Wages, and Daily Life

Beyond criminal penalties, the code functioned as a framework for the Babylonian economy. It established fixed wages to prevent exploitation. Law 273 set the daily pay for a general laborer at six gerahs of silver from the new year through the fifth month, dropping to five gerahs per day for the remainder of the year. Law 274 specified separate rates for skilled workers such as potters, tailors, and ropemakers, though parts of this provision are damaged and illegible on the surviving stele.7The Avalon Project. Code of Hammurabi

Domestic life fell under detailed regulation. Marriage required a formal written contract to be legally recognized; without one, no marriage existed in the eyes of the law.3The Avalon Project. Babylonian Law – The Code of Hammurabi The code specified how dowries and inheritance were managed, and it provided some protections for women. Law 142 allowed a woman to leave her husband if she had been neglected or mistreated. If an inquiry found she was blameless and her husband was at fault, she could take her dowry and return to her father’s house with no penalty attached.8Bloomsbury. Hammurabi Code of Laws She had to prove her case, but the provision existed.

Why the Code Still Matters

The code’s core innovation, the idea that punishments should be proportional to the offense, became a foundational principle in legal traditions that followed. The biblical phrase “an eye for an eye” in the Book of Exodus echoes Hammurabi’s lex talionis almost verbatim, and scholars have long debated whether this reflects direct influence or parallel development. The concept of proportionate sentencing that Hammurabi codified nearly four thousand years ago remains embedded in modern criminal justice systems.

More important than any individual law is the code’s insistence that legal standards should be written down, publicly displayed, and uniformly applied. The epilogue’s instruction that any wronged citizen could approach the stele and find the relevant rule anticipates the modern principle that laws must be accessible to the people they govern. Many of the specific provisions strike modern readers as deeply unjust, and the tiered class system built inequality directly into the rules. But the ambition of the project, a single comprehensive legal code governing an entire society, set a template that civilizations have followed ever since.