Code of Hammurabi, for article on Code of Hammurabi

Hammurabi’s code sets a new standard for written law in the ancient world

Around 1750 B.C.E., a Babylonian king ordered his laws carved into a column of black basalt nearly two and a half meters tall. The monument he left behind would be studied by scribes for a thousand years, rediscovered by archaeologists three millennia later, and recognized today as one of the most remarkable legal documents in human history.

What the evidence shows

  • Code of Hammurabi: Composed around 1753 B.C.E. by or under Hammurabi, sixth king of the First Dynasty of Babylon, the text contains roughly 4,130 lines of cuneiform — making it the longest and best-preserved legal text from the ancient Near East.
  • Cuneiform stele: The primary copy was inscribed on a basalt pillar 2.25 meters tall, topped with a carved image of Hammurabi receiving authority from Shamash, the Babylonian god of justice — visually anchoring law in divine legitimacy.
  • Babylonian legal system: The laws are written as “if… then” conditional statements covering criminal, family, property, and commercial disputes — a structure sophisticated enough that Mesopotamian scribes kept copying and teaching it for over a millennium after Hammurabi’s death.

A king who called himself a shepherd

Hammurabi ruled Babylon from around 1792 to 1750 B.C.E. His reign was, by any measure, politically ruthless. He secured dominance over the Mesopotamian plain through military force, diplomacy, and strategic betrayal of former allies. But his letters reveal a ruler who also saw himself as responsible for his subjects’ welfare — someone who described his purpose as preventing “the strong from oppressing the weak.”

That phrase appears in the prologue to the Code itself. It is not merely decorative. The word translated as “justice” — ešērum in Akkadian — runs through both the opening and closing sections of the text, framing the laws not as royal whim but as a moral project.

Whether Hammurabi personally drafted the laws, or whether they were compiled by a team of scribes drawing on existing legal custom, is a question scholars continue to debate. What is clear is that the text reflects a complex society with active markets, property disputes, inheritance conflicts, and professional relationships requiring legal clarity. The Code addresses all of it.

Not the first, but the most complete

When French archaeologists excavated the stele at Susa in present-day Iran between December 1901 C.E. and January 1902 C.E., early scholars assumed they had found the world’s oldest written laws. The 1903 C.E. English translation was even titled The Oldest Code of Laws in the World.

That claim did not survive further discovery. Several earlier Mesopotamian law collections are now known — written in Sumerian and Akkadian, attributed to earlier rulers. The Metropolitan Museum of Art’s overview of Hammurabi notes that the tradition of ruler-issued law collections was well established before his reign.

What Hammurabi’s code offered was something earlier texts did not: scale, organization, and survival. Over 50 manuscript copies have been found across sites including Babylon, Nineveh, Nippur, and Ur. The text entered the scribal curriculum and stayed there. The Louvre, where the original stele now stands, holds what remains the most complete single copy of any ancient Near Eastern legal text.

This durability matters. It means the Code shaped legal thinking not just in Hammurabi’s lifetime but across centuries of Mesopotamian civilization — and possibly beyond it.

Echoes across legal traditions

When the Code became widely known in the early 20th century C.E., scholars immediately noticed structural similarities with portions of the Hebrew Bible’s legal texts. The “eye for an eye” principle — lex talionis — appears in both. The Oriental Institute at the University of Chicago, one of the leading centers for ancient Near Eastern studies, has long been a hub for research into how Mesopotamian law influenced later traditions across the ancient world.

These connections remain debated. Scholars are careful not to assume direct borrowing where parallel development is equally possible. But the shared structures point to something real: a broader ancient Near Eastern legal culture in which ideas about accountability, compensation, and proportional punishment circulated across civilizations.

The Code’s influence on Western legal imagination has been direct and lasting. The U.S. Capitol building includes a relief portrait of Hammurabi among historic lawgivers. Replicas of the stele stand at United Nations headquarters in New York City and at the Pergamon Museum in Berlin. These are not merely decorative choices — they reflect a genuine intellectual lineage.

Lasting impact

The Code of Hammurabi established a model that later civilizations would return to again and again: written law, publicly displayed, attributed to legitimate authority, covering the range of ordinary disputes in a complex society. This was not self-evident. Before written law, legal decisions were local, oral, and subject to the memory and influence of whoever held power in a given moment.

Writing law down changed the relationship between rulers and the ruled. It created something that could be appealed to, copied, disputed, and taught. Encyclopaedia Britannica’s entry on the Code describes it as a foundational document in the global history of jurisprudence — a description that holds even after accounting for the earlier collections that preceded it.

Mesopotamia as a whole produced the most comprehensive surviving legal corpus from before the Digest of Justinian, surpassing what survives from ancient Greece and Rome. Hammurabi’s code sits at the center of that record.

Blindspots and limits

The Code is not egalitarian by modern standards. Its laws apply differently depending on whether a person is a free person, a dependent worker, or enslaved — outcomes for the same offense vary sharply based on social class. Women appear in the Code’s provisions but largely in relation to marriage, inheritance, and property, not as fully independent legal actors. Scholars also continue to debate whether the Code functioned as enforceable legislation or as a royal declaration of ideal justice — the gap between the two may have been significant in practice.

Read more

For more on this story, see: Wikipedia — Code of Hammurabi

For more from Good News for Humankind, see:

About this article

  • 🤖 This article is AI-generated, based on a framework created by Peter Schulte.
  • 🌍 It aims to be inspirational but clear-eyed, accurate, and evidence-based, and grounded in care for the Earth, peace and belonging for all, and human evolution.
  • 💬 Leave your notes and suggestions in the comments below — I will do my best to review and implement where appropriate.
  • ✉️ One verified piece of good news, one insight from Antihero Project, every weekday morning. Subscribe free.

More Good News

  • Fishing boats on a West African coastline at sunrise for an article about Ghana marine protected area

    Ghana declares its first marine protected area to rescue depleted fish stocks

    Ghana’s marine protected area — the country’s first ever — marks a historic turning point for a nation gripped by a quiet fisheries crisis. Established near Cape Three Points in the Western Region, the protected zone restricts or bans fishing activity to allow severely depleted fish populations to recover. Ghana’s coastal stocks have fallen by an estimated 80 percent from historic levels, threatening food security and the livelihoods of millions of small-scale fishers. The declaration also carries regional significance, potentially inspiring neighboring Gulf of Guinea nations to establish coordinated protections of their own.


  • Researcher examining brain scan imagery for an article about Alzheimer's prevention trial results

    U.S. researchers cut Alzheimer’s risk by half in first-ever prevention trial

    Alzheimer’s prevention may have reached a turning point after a landmark trial showed that removing amyloid plaques before symptoms appear can cut the risk of developing the disease by roughly 50%. Researchers at Washington University School of Medicine studied people with rare genetic mutations that make Alzheimer’s nearly inevitable, finding that early, aggressive treatment can genuinely alter the disease’s course. The results, published in The Lancet Neurology, mark the first time any intervention has shown potential to prevent Alzheimer’s from appearing at all, not merely slow its progression. That distinction matters enormously, since amyloid begins accumulating in the brain two…


  • A woman coach gesturing instructions on a football sideline for an article about female head coach in men's top-five European leagues

    Marie-Louise Eta becomes first female head coach in men’s top-five European leagues

    Female head coach Marie-Louise Eta made history on April 11, 2026, when Union Berlin appointed her as interim head coach — becoming the first woman ever to hold a head coaching position in any of men’s top-five European leagues. The Bundesliga club made the move after dismissing Steffen Baumgart, with five matches remaining and real relegation stakes on the line. Eta, 34, had served as assistant coach since 2023 and was already a familiar, trusted presence within the squad. This was no ceremonial gesture — she was handed a survival fight, which is precisely what makes the milestone significant.



Coach, writer, and recovering hustle hero. I help purpose-driven humans do good in the world in dark times - without the burnout.