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

  • African children smiling, for article on measles vaccination Africa

    Nearly 20 million measles deaths averted in Africa since 2000

    Measles vaccines in Africa have prevented an estimated 19.5 million deaths since 2000 — roughly 800,000 lives saved every year for nearly a quarter century. A new WHO and Gavi analysis credits steady investment in cold-chain systems, community health workers, and political will, with coverage for the critical second measles dose climbing more than tenfold over that stretch. This year, Cabo Verde, Mauritius, and Seychelles became the first sub-Saharan nations to officially eliminate measles and rubella, a milestone once considered out of reach. The story is a powerful reminder that global health progress, though uneven, compounds quietly over decades —…


  • Trans pride flag during protest, for article on Romanian trans rights

    Romania finally recognizes trans man’s identity in landmark E.U. victory

    Romanian trans rights took a real leap forward this week, as courts finally ordered the government to legally recognize Arian Mirzarafie-Ahi as male — a recognition the U.K. granted him back in 2020. For years, he lived with two identities depending on which border he crossed, until his case climbed all the way to the E.U.’s top court and came home with a binding answer. That ruling now obligates every E.U. member state to honor gender recognition documents issued by another. It’s a quiet but powerful shift: transgender people across Europe gain stronger footing not through new laws, but through…


  • Old-growth tree, for article on Tongass rainforest logging ruling

    Alaska judge permanently shields Tongass old-growth forests from logging

    The Tongass National Forest just won a major day in court, with a federal judge ruling in March 2026 that the U.S. Forest Service is not legally required to ramp up logging to meet timber industry demand. The decision protects the world’s largest temperate old-growth rainforest — home to roughly a third of what remains of this ecosystem globally, along with wild salmon runs, brown bears, and trees older than 800 years. Tribal nations, fishing crews, and tourism operators stood alongside federal defenders in the case, a reminder that the forest’s value reaches far beyond timber. Wins like this give…



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