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

  • Solar panels and wind turbines generating clean electricity for an article about renewable energy capacity

    Renewables hit 49% of global power capacity for the first time

    Renewable energy capacity crossed a landmark threshold in 2025, with global installed power surpassing 5,100 gigawatts and representing 49% of all capacity worldwide for the first time in history. The International Renewable Energy Agency reported a single-year addition of 692 gigawatts, led overwhelmingly by solar power, which alone accounted for 75% of new renewable installations. Clean energy now represents 85.6% of all new power capacity added globally, signaling that the transition has moved from aspiration to economic reality. The milestone carries implications beyond climate — nations with strong renewable bases demonstrated measurably greater energy security amid ongoing geopolitical instability.


  • A person sitting quietly on a bench at sunset, for an article about global suicide rate decline — 15 words.

    Global suicide rate has dropped nearly 40% since the 1990s

    Global suicide rates have dropped nearly 40% since the early 1990s, falling from roughly 15 deaths per 100,000 people to around nine — one of modern public health’s most significant and underreported victories. This decline was driven by expanded mental health services, crisis intervention programs, and proven strategies like restricting access to lethal means. The progress spans dozens of countries, with especially sharp declines in East Asia and Europe. Critically, this trend demonstrates that suicide is preventable at a population level — making the case for sustained investment in mental health infrastructure worldwide.


  • A white rhino walks through open savanna grassland for an article about Uganda rhino reintroduction

    Rhinos return to Uganda’s wild after 43 years of absence

    Uganda rhino reintroduction marks a historic milestone: wild rhinoceroses are roaming Ugandan soil for the first time in over 40 years. In 2026, rhinos bred at Ziwa Rhino Sanctuary were released into Kidepo Valley National Park, ending an absence caused entirely by poaching and political collapse during the Idi Amin era. The release represents decades of careful breeding, conservation funding, and community engagement. For local communities, conservationists, and a watching world, it proves that deliberate, sustained human effort can reverse even the most painful wildlife losses.



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