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

Hammurabi and His Code

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.

Hammurabi and His Code — Sixth king of Babylon (r. 1792–1750 BC)
Code of Hammurabi, king of Babylon; front, bas-relief.
Image: Mbzt · CC BY 3.0 · Wikimedia Commons

Hammurabi was a king of Babylon who ruled about 3,800 years ago, from roughly 1792 to 1750 BCE. He united much of Mesopotamia into one empire.

He is remembered most for his law code — nearly 300 laws carved onto a tall stone pillar, so that everyone in his kingdom could see the rules and the punishments.

Key Facts

A king who united a land

When Hammurabi became king, Babylon was a small kingdom surrounded by rivals. Through clever alliances and well-timed wars, he slowly brought the cities of southern and central Mesopotamia under his rule.

By the end of his reign he governed an empire — but he knew armies alone could not hold it together. Shared laws could.

The code on stone

Near the end of his life, Hammurabi ordered his laws to be carved on a pillar of hard black stone. At the top, a picture shows the king receiving the laws from Shamash, the god of justice.

The pillar stood in a public place. Its message was clear: the law is fixed, it comes from the gods, and even officials must follow it. Anyone who felt wronged could have the laws read aloud.

What the laws covered, and why they still matter

The code deals with trade, farming, family life, wages, doctors, builders and crime. If a house collapsed because of bad building, the builder was punished. If a doctor's operation failed, the code set the penalty in advance.

Its best-known idea is an eye for an eye — punishment should match the crime. In practice, fines and penalties often depended on a person's social rank, so the code was strict but not equal for everyone.

Hammurabi's code is one of the oldest complete law codes ever found — the full stone was rediscovered at Susa, in modern Iran, in 1901.

Older kings had written laws before him, but none so complete survives. The code shows us everyday life in Babylon — prices, wages, marriages and arguments — in the king's own age.

Did You Know?

Hammurabi's law stone stood in Babylon for centuries — until invaders carried it off as treasure to Susa, where archaeologists found it again in 1901, still almost complete.

Related Topics

Babylon The Sumerians The Babylonian Empire Cuneiform

Sources

Reviewed: 22 November 2026

Read this article in the interactive Pastloom reader →