Hammurabi’s Laws and Their Historical Setting in Old Babylonian Babylonia

Hammurabi’s laws belong to the Old Babylonian period in southern Mesopotamia, when Babylon rose from a regional kingdom to a major power. Hammurabi, the sixth king of Babylon’s First Dynasty, ruled in the eighteenth century BCE, conventionally dated from about 1792 to 1750 BCE. The collection was composed late in his reign, when his kingdom had expanded through war and diplomacy. Often called the Code of Hammurabi, it is a royal inscription containing conditional legal cases within a prologue and epilogue that celebrate the king’s justice.

On this page7 sections

Babylonia and the royal claim to justice

Hammurabi’s text continued an older Mesopotamian practice of setting out legal decisions in the name of a ruler. Collections associated with Ur-Nammu of Ur, around 2100 BCE, and Lipit-Ishtar of Isin, around 1930 BCE, predate it; the Laws of Eshnunna belong to roughly the same broad period as Hammurabi’s collection. These precedents show that Hammurabi did not invent the idea of a royal collection of cases. His inscription adapted that tradition to the claims of a Babylonian king ruling an enlarged and diverse territory.

Justice was also administered through more than one level of authority. The king was the highest judicial authority, while royal judges, officials such as governors, and local councils could deal with disputes. Professional judges, called dayyānum, often sat together rather than acting alone. Tablets from the period record contracts, judgments and correspondence about legal cases, offering evidence of legal practice alongside the royal collection. Courts could consider witnesses and written documents, including contracts whose terms had been witnessed and recorded on tablets.

In the inscription’s prologue, Hammurabi presents his kingship as divinely authorized and his duty as protecting people from oppression by the powerful. He describes himself as a shepherd responsible for his subjects and connects justice with the favour of the gods. This was a political claim as well as a statement of ideals: the king’s authority was presented as a means of maintaining order and righting wrongs.

A stone monument that joins justice to kingship

The best-preserved copy of the text is inscribed on a basalt stele over 2.25 metres high. Written in the Old Babylonian dialect of Akkadian in cuneiform, the inscription uses deliberately archaic-looking signs. Its upper section carries a relief showing Hammurabi standing before the seated sun god Shamash, who was associated with justice. The image links the king’s rule to divine authority. Shamash’s rays and mountain footrest identify the sun god, while the symbols of authority connect justice with the king’s duty to uphold order.

The inscription has three parts: a prologue, the legal cases and an epilogue. The prologue recounts Hammurabi’s achievements and names cities and gods associated with his rule. The epilogue describes the cases as just decisions, invites a wronged person to have the monument read aloud, and asks future rulers to preserve the king’s words. It also calls down divine curses on anyone who alters or defaces them. Together, these sections make the stele both a presentation of legal reasoning and a monument to Hammurabi’s reputation as a just king.

The text contains about 4,130 lines, with the prologue and epilogue occupying roughly one fifth of it. The collection is commonly divided into 282 numbered provisions, but that numbering was imposed by modern editors; the inscription itself does not mark each case with a number. Several columns near the bottom were erased in antiquity, probably to make room for an inscription by an Elamite ruler, though the new inscription was not added. Copies on clay tablets help restore parts of the lost text.

Most provisions follow a conditional pattern: they describe a situation and then specify a consequence. A case may begin, in effect, “if a person does this,” followed by what is to happen next. This format lets the text explore changes in circumstance, such as whether an accusation can be proved, whether a person is free or enslaved, or whether an injury has caused death.

The cases range across accusations and testimony, theft, land and irrigation, loans and trade, marriage and inheritance, physical injury, professional work and the ownership of enslaved people. Their arrangement moves between related subjects. Other legal practices also depended on custom and local circumstances, as well as on written agreements and judgments.

Some cases show how the collection imagined legal procedure. Its opening provisions prescribe severe penalties for a person who makes an unproved accusation of murder or gives false testimony in a serious case. Another provision sends a person accused of sorcery to a river ordeal when the accusation cannot otherwise be resolved. In this religious test, the river’s outcome was understood as a divine judgment. The ordeal placed the unresolved accusation before a divine power, whereas testimony and written agreements offered other ways to establish a claim.

Contracts, livelihoods and the operation of law

Written evidence mattered in transactions as well as in disputes. One provision says that a person placing valuables in another’s safekeeping should show them to witnesses and make a contract. Another treats a marriage without a formal contract as not legally established. A witnessed record could establish what had been entrusted or promised and identify the parties if a disagreement arose.

Several cases address the risks of farming in a landscape dependent on managed water. A farmer who fails to maintain a protective bank and floods neighbouring fields can be held responsible for the damage. Other provisions concern grazing animals that trespass on cultivated land. Rules for renting fields and establishing orchards address the different interests of landowners and cultivators: for example, an orchard requires time to become productive, so a gardener might tend it for several years before the harvest was divided with the owner.

The collection also links land to service owed to the palace. Some soldiers and other workers received the use of land in return for a duty called ilkum, which could include military service. The land was tied to that obligation rather than being freely disposable property. Provisions address what happened if a soldier was captured, deserted or died, including circumstances in which a son could take up the service and land. These cases show how the palace connected military and other services to the resources that supported those who performed them.

Professional cases likewise combine payment with responsibility. For example, the text sets fees for certain medical treatments and prescribes a severe penalty if a physician’s operation kills or blinds a man of high standing. If the patient is an enslaved person who dies, the provision instead requires the physician to replace that person for the owner. The contrast ties the remedy to both professional responsibility and the patient’s legal status.

Status shaped penalties and remedies

The remedies in the collection depend on the social standing of the people involved. It uses awīlum for a person who, in some contexts, belongs to a higher-status group; muškēnum for a person of a different and probably lower social position; and wardum or amtum for an enslaved man or woman. The precise social meanings of the first two terms remain debated.

Differences of status appear in provisions about injury and medical treatment. A number of cases prescribe “an eye for an eye” or “a bone for a bone” when a person of one rank injures another of comparable standing. This principle is often called lex talionis, or retaliation in kind. Other cases set financial compensation according to the status of the injured person. Enslaved people were treated as another person’s property in many provisions, so their injury or death could lead to compensation for an owner rather than a remedy equal to that given for a free person.

Family provisions address marriage agreements, divorce, adoption, inheritance and the property of widows, often through particular cases rather than general rules. They reflect a household order in which a father held substantial authority, while some provisions also protect a widow’s claim to property or require scrutiny of a father’s decision to disinherit a son. The collection sets out remedies and protections within a sharply unequal society.

What the collection tells us about Babylonian law

Scholars have long debated the text’s purpose. One interpretation treats it as legislation intended to guide decisions. Another sees it as a stylized record of earlier judgments. A third understands it as a work of legal reasoning, setting out examples from which scribes and judges could think through cases. These possibilities need not be entirely exclusive: the inscription could communicate royal authority, preserve examples of justice and offer guidance at the same time.

Surviving court documents do not explicitly cite the collection as their authority, and some judgments differ from its prescriptions. This leaves its precise relationship to courtroom decisions unresolved. What the collection makes especially clear is the importance of property, family relationships, work and injury in Babylonian legal thought, and the king’s claim to provide just outcomes for disputes concerning them.

From Kassite copies to first-millennium reception

The text continued to be copied after Hammurabi’s kingdom had passed. Clay copies preserved parts of the work at several Mesopotamian sites. The library of the Assyrian king Ashurbanipal at Nineveh included a copy, and later Babylonian scribes also preserved it as a scholarly work.

The stele itself was carried to Susa, in Elam, as booty when Elamite rulers raided Babylonian cities in the twelfth century BCE. Its original location is uncertain, though Sippar has been proposed. A sixth-century BCE copy of the prologue from Sippar reports that the text had been copied from an old stele at Susa. The note traces the work of a later scribe back to the stone monument at Susa, showing how a text could remain available for copying after its removal from Babylonia.

Sixth-century BCE Babylonian legal collections continued to use related case-based forms. Scribes preserved examples of disputes and outcomes as part of a long tradition of legal writing. Hammurabi’s own text remained a work to copy and study after the political world of his reign had disappeared.

The stele was rediscovered at Susa in 1901-1902 and is now in the Louvre. Its long afterlife is clearest in the copies made by scribes, who preserved and studied its royal claims and conditional cases across changing kingdoms and centuries.

Scroll to Top