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

  • Rows of solar panels in a Chinese desert reflecting China wind and solar capacity growth under the Five-Year Plan clean energy targets

    China plans to double its already massive clean energy supply by 2035

    China’s new climate pledge to the United Nations sets a target of 3,600 gigawatts of wind and solar power by 2035 — more than the entire electricity-generating capacity of the United States today, and roughly double what China has already built. The commitment is woven into the country’s next Five-Year Plan, which directs state banks, provinces, and manufacturers to move in the same direction. Because China makes about 80% of the world’s solar panels, every factory it scales up makes clean energy cheaper for buyers in Africa, Southeast Asia, Latin America, and everywhere else. That ripple effect is what makes…


  • Medical researcher in a lab examining vials related to asthma and COPD treatment and mRNA vaccine development, for article on benralizumab injection

    Doctors hail first breakthrough in asthma and COPD treatment in 50 years

    Benralizumab, a single injection given during an asthma or COPD attack, outperformed the steroid pills that have been the only emergency option since the 1970s. In a King’s College London trial of 158 patients, those who got the shot had four times fewer treatment failures over 90 days, along with easier breathing and fewer follow-up visits. Because steroids carry real risks with repeated use — diabetes, osteoporosis, and more — a genuine alternative could change daily life for millions of people who live in fear of the next flare-up. After a half-century of stalled progress on diseases that claim 3.8…


  • A nurse in a rural Mexican clinic checks a patient's blood pressure, for an article about Mexico universal healthcare

    Mexico launches universal healthcare for all 133 million citizens

    Mexico universal healthcare is now officially a reality, with the country launching a system designed to cover all 133 million citizens through the restructured IMSS-Bienestar network. Before this reform, an estimated 50 million Mexicans had no formal health insurance, with rural and Indigenous communities bearing the heaviest burden of untreated illness and medical debt. The new system severs the long-standing tie between employment and healthcare access, providing free consultations, medicines, and hospital services regardless of income. If implemented effectively, Mexico’s move could serve as a powerful model for other middle-income nations still navigating fragmented, inequitable health systems.



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