While famous for the "eye for an eye" principle, the Code of Hammurabi was not the world's oldest written law code, nor did it apply laws equally. Punishments varied drastically depending on social status, protecting elites far more than commoners or enslaved people.
The Discovery at Susa
In the winter of 1901 to 1902, a French archaeological expedition led by Jacques de Morgan excavated the ancient acropolis of Susa, located in modern-day Iran. Among the ruins, team member Gustave Jéquier uncovered large fragments of a massive, polished stele of black diorite or basalt. When assembled, the monument stood over two meters tall. At its top was a carved relief depicting the Babylonian king Hammurabi standing before Shamash, the Mesopotamian god of justice and the sun. Below this image were thousands of lines of cuneiform text inscribed in the Akkadian language, carefully translated soon after by the French Assyriologist Jean-Vincent Scheil.
The presence of the monument in Susa—far from its original home in Babylonia—was the result of ancient warfare. Several centuries after Hammurabi's reign in the eighteenth century BCE, the Elamite king Shutruk-Nakhunte raided Mesopotamia, plundered major cities, and brought the stele back to his capital as a war trophy. The conqueror even erased several columns of text, likely intending to inscribe his own deeds, though that space was left blank. The stele was transported to the Louvre Museum in Paris, where it became one of the most famous legal and historical artifacts in human history.
A Tradition Preceding Hammurabi
A enduring popular misconception is that Hammurabi invented written law or compiled the earliest legal code. In reality, the Babylonian king was operating within a centuries-old tradition of Mesopotamian jurisprudence. Cuneiform legal collections existed long before Hammurabi established his empire across southern and central Mesopotamia. The earliest known written legal collection is the Code of Ur-Nammu, composed in Sumerian around the end of the third millennium BCE, centuries before Hammurabi's reign.
Other surviving Mesopotamian legal texts include the Laws of Lipit-Ishtar and the Laws of Eshnunna, both of which predate Hammurabi's monument. These earlier works addressed many of the same core issues: property damage, agricultural liabilities, debt, physical injuries, and rates for hiring laborers or draft animals. Hammurabi's compilation is historically unique not because it was the first, but because it is by far the most complete, extensive, and well-preserved legal text from the ancient Near East, numbering around 282 specific provisions.
A Society Divided into Three Classes
The laws of the stele did not establish equality before the law; instead, they explicitly encoded the rigid class hierarchy of Old Babylonian society. The population was divided into three distinct social tiers: the awīlum (free citizens, property owners, and elites), the muškēnum (free commoners of lesser economic standing, often dependent on the state or palace), and the wardum (enslaved individuals who were legally categorized as property).
The legal standing and physical safety of an individual depended entirely on which tier they occupied. Harming an elite person brought severe, often lethal or mutilating retaliation, whereas harming someone of lower rank required only monetary restitution. Similarly, the fees paid to physicians, surgeons, and midwives, as well as the fines imposed for economic infractions, were scaled to match the social class of the victim or the practitioner.
The Nuance of Retribution
The famous principle of lex talionis—an eye for an eye, a tooth for a tooth—applied strictly within the same social rank. If an awīlum destroyed the eye or broke the bone of another awīlum, his own eye would be blinded or his bone broken. However, if an awīlum committed the exact same violence against a muškēnum, the physical penalty vanished; the offender was merely ordered to pay a specified fine in silver. If the victim was an enslaved person, the offender paid half the enslaved person's commercial value directly to the slave's owner to compensate for lost labor capacity.
The code also featured vicarious liability, where penalties were visited upon family members rather than the primary wrongdoer. If a builder constructed a house poorly and it collapsed, killing the homeowner, the builder was put to death. But if the collapse killed the homeowner's son or daughter, the law mandated that the builder's own son or daughter be executed in return. Such laws treated dependents not as individual rights-holders, but as extensions of the household head's property and status.
Regulation of Daily Life and Economy
Beyond violent crimes and physical injuries, the vast majority of Hammurabi's laws dealt with economic and domestic arrangements. Mesopotamia relied on intensive irrigation agriculture, and the code placed strict liabilities on farmers. If a tenant failed to maintain their dike and flooded a neighbor's field, they were legally obligated to replace the lost grain or be sold into labor to pay the debt.
The text regulated commerce, establishing maximum interest rates on silver and grain loans, detailing shipping and trade contracts, and setting standard wages for agricultural laborers, builders, and artisans. Family law formed another substantial portion of the text, regulating dowries, marriage contracts, divorce settlements, inheritance rights, adoption, and sexual conduct. While patriarchal authority was paramount, women retained specific legal protections, such as the right to reclaim their dowry in cases of unjustified abandonment or divorce.
Statutory Code or Royal Monument?
Among modern legal historians and Assyriologists, there is an ongoing debate about whether Hammurabi's compilation functioned as an active, binding statutory code or as a royal monument of ideal justice. Thousands of surviving cuneiform legal records from Old Babylonian courts—including trial transcripts, contracts, and verdicts—have been excavated, yet judges almost never cited specific provisions from the stele when rendering their decisions.
The framing of the monument suggests it served a deeply political and religious purpose. The lengthy prologue and epilogue frame Hammurabi as the 'shepherd' chosen by the gods Anu and Enlil to establish righteousness in the land, protect the weak from the strong, and bring prosperity to his subjects. Rather than a modern statute book meant to be consulted in every courtroom, the stele may have stood as a permanent public declaration of the king's piety and fairness, presenting a benchmark of royal justice for future generations to admire.
Key takeaways
•The Code of Hammurabi was not the world's first written legal system; older Mesopotamian collections like the Code of Ur-Nammu and Laws of Lipit-Ishtar preceded it by centuries.
•Punishments were determined by social class: the 'eye for an eye' principle applied only between social equals, while offenses against commoners or enslaved people were settled with financial payments.
•The monument covers a wide array of civil life, including agricultural irrigation liability, professional accountability, family law, and commerce.
•Scholars debate whether the stele was an everyday statutory code or an ideological monument showcasing Hammurabi's divine commitment to ideal justice.