PastloomThe Stories That Shaped Our World
Home · All Articles · Ancient Civilisations
✓ OUR ARTICLE
Ancient Civilisations

The Code of Hammurabi

This article is written in English. Choose a language to open an automatic translation by Google Translate. Automatic translations can sometimes get historical names and dates wrong — for full accuracy, read the original English article.

The Code of Hammurabi — Babylonian legal text
Code de Hammurabi, roi de Babylone ; face avant.
Image: Mbzt · CC BY 3.0 · Wikimedia Commons

The Code of Hammurabi is one of the oldest written law codes in the world. Hammurabi, king of Babylon, had it carved on a tall stone pillar about 3,750 years ago.

Its 282 laws cover trade, farming, family life, wages and punishments. Reading them is like opening a window into everyday life in ancient Babylon.

Key Facts

A king who wanted justice

Hammurabi ruled Babylon from about 1792 to 1750 BCE and conquered much of Mesopotamia. Near the end of his reign he published his laws so that, as the stone says, the strong should not harm the weak.

The pillar was set up in a public place. At its top, a carving shows Hammurabi standing before Shamash, the god of justice — a sign that the laws came with divine approval.

What the laws say

The code fixes prices and wages — how much to pay a builder, a doctor or a boatman. It punishes builders whose houses collapse, farmers who flood a neighbour's field, and merchants who cheat.

Its best-known rule is 'an eye for an eye, a tooth for a tooth'. Punishments also depended on rank: harming a noble cost more than harming a commoner, and slaves had the fewest rights of all.

Found again after 3,500 years

Babylon fell, and the pillar was carried away as war loot to Susa, in modern Iran. There French archaeologists found it in pieces in 1901.

Rebuilt, the stone now stands in the Louvre Museum in Paris. Copies and summaries of Hammurabi's laws influenced later law codes, and his name still stands for the idea that laws should be written down for all to see.

Did You Know?

One law says a builder whose house falls down and kills the owner shall himself be put to death — ancient Babylon took building safety very seriously.

Related Topics

Hammurabi and His Code Babylon The Sumerians Assyria: The Empire of Iron and Armies

Sources

Reviewed: 22 November 2026

Read this article in the interactive Pastloom reader →