1. Introduction – A Monument in Stone and Law

Imagine walking into the bustling heart of ancient Babylon nearly 3,800 years ago. Merchants are calling out their prices in the marketplace, scribes are recording grain deliveries on clay tablets, and priests are preparing offerings at the temple of Marduk. Amid the noise and color of the city, a towering black stone monument stands in a public square — engraved with hundreds of lines of text in a strange wedge-shaped script.

This is the Code of Hammurabi, one of humanity’s first known attempts to set down the laws of a society in writing, for all to see. It is more than a collection of rules; it is a snapshot of life, values, and power in the ancient world.

Inscribed in Akkadian cuneiform on a 2.25-meter-high stele of black diorite, the code was created around 1754 BCE by King Hammurabi, the sixth king of the First Babylonian Dynasty. It contains 282 laws that cover almost every aspect of life — trade, property, marriage, family, wages, debt, crime, and punishment.


2. The World Before the Code

Before Hammurabi, societies had rules — but they were usually customary laws, passed down orally and enforced by local leaders or tribal elders. In Mesopotamia, earlier legal traditions existed, such as the Code of Ur-Nammu (c. 2100 BCE) and the Lipit-Ishtar Code (c. 1930 BCE), but these were less detailed and not as publicly displayed.

The decision to carve the laws into stone for public viewing was revolutionary. It shifted law from being hidden knowledge held by the elite to being a visible, tangible set of rules that theoretically applied to everyone.


3. Hammurabi – The Lawgiver King

Hammurabi reigned from 1792 to 1750 BCE, transforming Babylon from a modest city-state into a dominant power in Mesopotamia. His rule combined military conquest, diplomatic alliances, and an emphasis on centralized administration.

By the time he commissioned the code, Hammurabi controlled nearly all of southern Mesopotamia. But ruling a vast and diverse population posed challenges:

  • Different regions had different traditions.
  • Local judges could be biased or inconsistent.
  • Disputes between merchants, farmers, and officials needed clear resolution.

The Code of Hammurabi was both a political tool and a statement of divine authority. The laws were presented as having been given to Hammurabi by Shamash, the sun god and god of justice. This linked obedience to the law with religious duty.


4. The Stele – An Artifact of Power

The most famous surviving copy of the code is the Louvre Stele, discovered in 1901 at Susa (in modern Iran). It had been taken there centuries earlier as war booty by the Elamites.

Physical Features:

  • Height: 2.25 meters (7.4 feet)
  • Material: Black basalt/diorite (extremely hard stone, symbolizing permanence)
  • Writing: About 4,000 lines of Akkadian cuneiform text.
  • Top Relief: Depicts Hammurabi standing before Shamash, receiving the symbols of authority — the rod and ring.

This imagery reinforced the idea that the laws were not merely human inventions but divinely sanctioned.


5. Structure of the Code

The text is divided into three main parts:

  1. Prologue – A poetic introduction where Hammurabi lists his achievements and claims divine authority to maintain justice and protect the weak.
  2. Laws – 282 specific regulations covering a vast range of topics.
  3. Epilogue – A concluding section in which Hammurabi calls on future rulers to uphold the laws and curses anyone who dares to alter or ignore them.

6. Key Principles of the Code

The Code of Hammurabi is often summarized by the phrase “an eye for an eye, a tooth for a tooth” (lex talionis), but its philosophy is more complex.

Lex Talionis – Retaliation in Kind

  • Crimes should receive punishments equivalent to the harm done.
  • This was meant to limit excessive revenge, not to encourage brutality.

Social Class and Law

  • The code distinguished between awilu (free citizens), mushkenu (commoners), and wardu (slaves).
  • Punishments could vary drastically depending on the social status of both victim and offender.

Presumption of Guilt or Innocence

  • Trials could involve oaths before the gods or even ordeals by river, where the accused was thrown into the river to see if the gods would save them.

7. Topics Covered by the Laws

The laws of Hammurabi covered virtually every part of life in ancient Babylon:

Trade and Commerce

  • Regulations on merchants, contracts, loans, and interest rates.
  • Harsh penalties for fraud or false weights and measures.

Property and Agriculture

  • Rules about land leases, irrigation responsibilities, and crop damage.
  • Tenants who failed to maintain irrigation canals could face severe fines.

Family Law

  • Detailed provisions for marriage, dowries, divorce, and inheritance.
  • Men could divorce their wives under certain conditions, but women also had rights to leave abusive husbands.

Labor and Wages

  • Fixed wages for different trades and seasonal work.
  • Penalties for workers who abandoned their jobs without permission.

Criminal Law

  • Punishments for theft, assault, adultery, and false accusation.
  • Many crimes carried the death penalty, especially against the temple or palace.

8. The Purpose Behind the Code

The code was not just about justice — it was about control. By setting a standardized legal framework, Hammurabi:

  • Strengthened royal authority over local judges.
  • Unified diverse peoples under a single legal identity.
  • Projected the image of a king as a shepherd and protector, but also a strict enforcer of order.

The public display of the code was both a practical tool and political propaganda.

9. Famous Laws – Glimpses Into Babylonian Life

The Code’s 282 laws read like a cross-section of daily life in Babylon. Some are startling in their harshness; others reveal surprising fairness and concern for social welfare.

Property and Theft

  • Law 6: If anyone steals property from the temple or the palace, they shall be put to death — and the one who receives the stolen goods shall also be killed.
    → Shows the sacred status of temple and royal property.
  • Law 8: If anyone steals cattle or sheep, they must repay thirtyfold if the property belonged to a temple, tenfold if it belonged to a free citizen; if unable to pay, they shall be put to death.

Agriculture and Irrigation

  • Law 53–54: If a man neglects to strengthen his dike and the waters flood his neighbor’s field, he must pay for the grain lost.
    → Reflects the central importance of irrigation in Mesopotamian agriculture.

Contracts and Loans

  • Law 48: If a man owes a debt but a storm destroys his crops, he can defer payment without interest that year.
    → A rare glimpse of debtor protection in the ancient world.

Family Law

  • Law 128: If a man takes a wife but does not draw up a marriage contract, she is not recognized as a legal wife.
  • Law 142–143: If a woman hates her husband and says “You shall not have me,” an investigation is held; if she is judged blameless, she may return to her father’s house with her dowry.

Criminal Law

  • Law 196: If a man destroys the eye of another man, they shall destroy his eye (lex talionis).
  • Law 229: If a builder constructs a house and it collapses and kills the owner, the builder shall be put to death.
  • Law 230: If it kills the owner’s son, the builder’s son shall be put to death.

These examples show that justice was tied closely to retribution, deterrence, and social class distinctions.


10. Women in Hammurabi’s Babylon

The code reveals both restrictions and protections for women:

  • Women could own property, engage in business, and inherit wealth.
  • Marriage contracts gave wives certain rights, especially concerning dowries.
  • However, punishments for adultery were severe — often death for both partners, unless pardoned by the husband or king.

In divorce cases, women could keep their dowry and sometimes receive custody of children if the husband was at fault. This suggests that while patriarchal, Babylonian society recognized women as legal persons, not just property.


11. Slaves Under the Code

Slaves (wardu) were an accepted part of life:

  • Could be bought, sold, or inherited.
  • Had limited legal rights but could marry free people and even buy their own freedom.
  • Laws punished harboring runaway slaves or helping them escape.

While slavery in Babylon was not based on race, it was still a system of deep inequality, with harsh penalties for slaves who defied their masters.


Code of Ur-Nammu (c. 2100 BCE)

  • Earlier and less severe; relied more on fines than physical punishments.

Mosaic Law (c. 1200–1000 BCE)

  • Found in the Hebrew Bible; shares the principle of lex talionis but places greater emphasis on religious purity.

Roman Law (c. 5th century BCE onward)

  • More procedural, with greater focus on contracts and civic duties; heavily influenced by earlier Mesopotamian traditions.

The Code of Hammurabi stands out for its detail and public visibility.


13. Influence on Later Civilizations

Hammurabi’s Code shaped the legal traditions of the Near East for centuries:

  • The Assyrians adopted and expanded many Babylonian legal principles.
  • The Persians respected and preserved Babylonian legal customs after conquering the city.
  • Biblical law in the Old Testament reflects parallels in structure and content.

Even in modern times, Hammurabi’s Code is studied as a foundation of written law and legal philosophy.


14. Rediscovery and Archaeology

In 1901, a French archaeological team led by Jacques de Morgan uncovered the stele at Susa, where it had been taken by the Elamite king Shutruk-Nakhunte in the 12th century BCE.

Today, the stele is housed in the Louvre Museum in Paris, and casts or replicas are displayed in institutions around the world.


15. Modern Interpretations

Historians and legal scholars debate:

  • Was the code actually enforced, or was it more symbolic?
  • Were some laws idealized rather than practical?
  • Did Hammurabi truly invent these laws, or did he compile and standardize existing customs?

Most agree the code served both practical judicial purposes and political propaganda, reinforcing the image of Hammurabi as a just ruler chosen by the gods.


16. The Epilogue – A King’s Final Word

The code ends with a lengthy epilogue in which Hammurabi boasts of his achievements, prays for blessings on those who uphold the laws, and curses anyone who dares to alter or ignore them. These curses are vivid and fierce, invoking divine wrath on future rulers who fail to protect the weak.

This final section transforms the stele from a legal document into a moral and political testament.


17. Legacy – The Stone That Still Speaks

The Code of Hammurabi is not just a relic of Babylon — it is a landmark in human history:

  • It marks a turning point from oral to written law.
  • It reflects the values, hierarchies, and anxieties of one of the world’s first great civilizations.
  • It influenced the concept of justice for millennia.

In a world where law was often arbitrary, Hammurabi offered structure. Whether feared or respected, the code was a bold declaration: “This is how we will live together — and this is what happens if you break the order.”