The Code of Hammurabi is a Babylonian collection of legal provisions composed in the eighteenth century BCE under Hammurabi, king of Babylon. Written in Akkadian using cuneiform script, it survives most famously on a monumental stone stele now in the Louvre Museum in Paris, as well as in copies on clay tablets. Its provisions address judicial procedure, property, commerce, agriculture, debt, family relationships, bodily injury, and enslavement. It is among the most extensive surviving legal collections from the ancient world, but it was neither the earliest written law nor a comprehensive code in the modern sense.
Historical setting
Hammurabi ruled Babylon approximately from 1792 to 1750 BCE according to the commonly used Middle Chronology; alternative chronologies assign different absolute dates. During his reign, Babylon expanded from a regional kingdom into a power controlling much of southern and central Mesopotamia. The collection belongs to the later part of his reign and presents the king as a divinely authorized ruler responsible for establishing justice.
The society reflected in the text combined palace and temple institutions with private households, merchants, landholders, tenants, laborers, and enslaved people. Agriculture depended heavily on irrigation, while commercial activity involved loans, agency relationships, transport, and written agreements. The provisions address disputes arising within these interconnected institutions.
Hammurabi’s collection followed an established Mesopotamian tradition. Earlier surviving collections include the Laws of Ur-Nammu, generally dated to the late third millennium BCE, the Laws of Lipit-Ishtar, and the Laws of Eshnunna. These predecessors show that written formulations of legal rules existed centuries before Hammurabi.
The stele and its discovery
The best-known surviving version is inscribed on a dark stone stele approximately 2.25 metres tall. At its summit, a relief depicts Hammurabi standing before the seated sun god Shamash, who was associated with justice. The god holds a rod and ring, symbols of authority. The image establishes divine authorization for royal justice; it does not literally depict the delivery of a written law book.
The stele was excavated in several fragments by a French archaeological expedition at Susa, in present-day Iran, during the 1901–1902 excavation season. It had been taken there from Babylonia in antiquity, generally understood as booty carried off during an Elamite campaign in the twelfth century BCE. Its original place of erection is not securely established.
Part of the inscription was erased in antiquity. Other copies of the collection, including fragments of clay tablets, help recover portions of the missing text and illuminate its transmission. The stele is therefore the principal witness to the collection, but not its only surviving witness.
Language and organization
The inscription consists of three main parts:
- A prologue, describing the divine foundations of Hammurabi’s kingship, his achievements, and his responsibility to uphold justice.
- A central collection of legal provisions, conventionally divided by modern editors into 282 numbered sections.
- An epilogue, praising the king’s just decisions, inviting people with grievances to consult the monument, and invoking curses against future rulers who alter or disregard its words.
The section numbers are modern editorial additions. Some numbered provisions fall within the erased portion of the stele, so the monument does not preserve 282 complete, continuously readable rules.
Most provisions use a conditional, or casuistic, structure: a situation is introduced with “if,” followed by its legal consequence. For example, a rule may describe a disputed transaction, an injury, or damage caused by negligence and then prescribe compensation, punishment, or another resolution.
The arrangement follows recognizable subject clusters, but it does not resemble a modern statute book divided into systematically defined branches of law. Rules concerning commerce, property, family relationships, and offenses frequently overlap.
Principal subjects
Courts, evidence, and judicial responsibility
The opening provisions address accusations, testimony, and judicial conduct. False accusations could expose an accuser to severe penalties, especially when the alleged offense carried a capital punishment. Written records, witnesses, and sworn statements appear throughout the collection.
One provision penalizes a judge who changes a formally recorded judgment, requiring a substantial payment and removal from judicial office. This indicates concern with the stability of judgments, although it should not be equated with modern doctrines of judicial independence.
Some disputes could be resolved through a river ordeal, in which entering the river served as a means of submitting a contested claim to divine judgment. Such procedures coexisted with documentary and testimonial evidence.
Property, commerce, and agricultural production
The collection regulates theft, receipt of disputed goods, loans, deposits, commercial agents, tenancy, livestock, wages, and transport. Several provisions concern matters now associated with contract law, although that modern category does not precisely reproduce Babylonian legal concepts.
Agricultural provisions assign responsibility for maintaining irrigation works. A person whose failure to strengthen an embankment caused flooding and crop losses could be required to compensate those affected. Other rules allocate obligations between landowners and cultivators.
Debt provisions sometimes recognize circumstances beyond a borrower’s control. Section 48, for example, provides relief from the year’s repayment obligation when storm damage or lack of water destroys a crop. Such provisions qualify the impression that the collection consists entirely of severe punishments.
Marriage, inheritance, and household relations
A substantial portion concerns marriage, divorce, dowries, inheritance, adoption, and relations between parents and children. Marriage is treated as a legally recognized arrangement involving household property and obligations as well as personal relationships.
Women could hold certain property interests, receive specified support or settlements, and make claims in particular circumstances. Nevertheless, rights and penalties were structured by sex, marital position, and social status. Adultery, accusations of sexual misconduct, and disputes over separation could have sharply different consequences depending on those distinctions.
Inheritance rules address children of different unions, adopted children, widows, and property designated for particular family members. These provisions reveal complex kinship and household arrangements rather than a single uniform family model.
Injury, professional responsibility, and punishment
The collection is especially known for bodily retaliation. Section 196 prescribes the destruction of an offender’s eye for destroying the eye of another person in the same privileged legal category. Related provisions address broken bones and lost teeth.
This principle, commonly called lex talionis, was not the universal remedy. Other injuries required monetary payments, with the amount depending on the injured person’s status. Harm to an enslaved person could be compensated through payment to that person’s owner.
Professional obligations also receive attention. Rules set fees and consequences for the work of physicians, builders, and other specialists. A builder whose defective construction caused a house to collapse could face extremely severe punishment. In some cases, a penalty fell on a member of the offender’s household rather than on the offender alone, reflecting principles unlike modern individual criminal responsibility.
The collection prescribes the death penalty, bodily mutilation, restitution, monetary compensation, and other consequences. Its severity varies considerably across subjects and social categories.
Social status and unequal legal treatment
The text distinguishes categories commonly transliterated as awīlum, muškēnum, and wardum. Their precise meanings, especially that of muškēnum, remain debated. They are often rendered approximately as a person of full legal standing, a person of a different or dependent status, and an enslaved person, respectively. These translations should not be treated as exact equivalents of modern social classes.
Status affected remedies, payments, and punishments. An injury might lead to retaliation when the parties belonged to one category but monetary compensation when the victim belonged to another. Gender and family position also shaped legal consequences.
Slavery was integral to the social order represented in the collection. Enslaved people could be bought, sold, inherited, and subjected to rules governing escape and ownership disputes. The text also distinguishes some forms of temporary debt service from permanent enslavement. Section 117 limits specified debt service by a debtor’s wife, son, or daughter to three years, with release in the fourth year.
These distinctions make the collection an important source for legal inequality in ancient Babylonia. Its stated concern for protecting vulnerable people operated within a hierarchical society, not through a principle of equal legal status.
Was it a code in the modern sense?
The conventional title can be misleading. A modern code generally aims to organize a field of law systematically and to function as an authoritative legislative text. Hammurabi’s collection leaves many subjects untreated, does not define a complete legal system, and cannot automatically be read as an exhaustive statement of rules applied throughout his kingdom.
Its relationship to everyday legal practice remains a major question in ancient legal history. Surviving contracts, letters, and court records show institutions and practices related to those in the collection, but they do not establish that judges routinely cited its provisions as binding statutes.
Interpretations therefore emphasize different, potentially overlapping functions:
- Royal proclamation: a public presentation of Hammurabi as a just ruler.
- Legal scholarship: an ordered treatment of difficult cases within a scribal intellectual tradition.
- Normative guidance: formulations that could inform expectations about proper decisions and conduct.
The prologue and epilogue strongly support its role in royal self-presentation, while its detailed case formulations demonstrate sustained engagement with practical legal problems. It is therefore more precise to describe it as a royal law collection than to assume it operated like a modern national code.
Transmission and comparative significance
The collection continued to be copied in Mesopotamian scribal settings long after Hammurabi’s reign. Its survival on tablets shows that it became part of an enduring learned tradition, not merely an inscription displayed during one king’s lifetime.
Comparisons with biblical laws have attracted particular attention, especially concerning bodily retaliation, injury, theft, and household relationships. Similarities place these texts within a broader ancient Near Eastern legal environment. They do not, by themselves, demonstrate direct borrowing; differences in formulation, social setting, and religious purpose also require examination.
For archaeology and legal history, the collection provides unusually extensive evidence of how an ancient monarchy represented justice and classified legal problems. Read alongside administrative documents, contracts, and records from courts, it helps reconstruct Babylonian institutions while also showing the limits of using an official royal monument as a direct description of everyday practice.