Babylon, Mesopotamia, Hammurabi, cuneiform, royal justice, case law, social hierarchy, and ancient legal history

The Code of Hammurabi

The Code of Hammurabi is a major Babylonian legal text from the eighteenth century BCE, carved on a tall stone stele and remembered for showing how royal authority, social order, religion, and written law worked together in ancient Mesopotamia.

Date
Around 1750 BCE, during Hammurabi's reign
Text
282 legal judgments written in Akkadian cuneiform
Current location
Louvre Museum, Paris
The Code of Hammurabi stele, now displayed at the Louvre Museum in Paris.View image on original site

What the Code of Hammurabi is

The Code of Hammurabi is a long Babylonian legal inscription associated with Hammurabi, king of Babylon. It is carved in cuneiform on a tall stone stele. The text includes a prologue praising the king, a large body of legal judgments, and an epilogue presenting Hammurabi as a ruler who brought justice and order. It is often called a law code, but it is closer to a public collection of model judgments than to a modern statute book.

Babylon and royal authority

Hammurabi ruled Babylon in the eighteenth century BCE and expanded its power across much of Mesopotamia. His legal text helped present the king as a guardian of order chosen by the gods. The carved image at the top of the stele shows Hammurabi before a seated deity, usually identified as Shamash, the god connected with justice. The visual message is clear: law, kingship, and divine authority were meant to reinforce each other.

What the laws cover

The judgments cover topics such as theft, debt, agriculture, wages, trade, marriage, divorce, inheritance, adoption, injury, medical practice, building work, and the responsibilities of officials and witnesses. Many follow an if-then pattern: if a specific situation happens, then a specified penalty or remedy follows. This gives historians a structured view of the problems Babylonian law expected to manage.

Punishment and social rank

The code is famous for harsh punishments and the principle often summarized as an eye for an eye. In practice, penalties depended heavily on status, gender, profession, and the relationship between the people involved. A free man, a dependent person, and an enslaved person could receive different treatment for similar injuries. This makes the text important evidence for both legal reasoning and inequality in ancient society.

Writing law in public

The stele was not only a practical legal reference. It was also royal propaganda, a monument of literacy, and a public claim that justice could be made visible. Most people in Babylonia could not read cuneiform fluently, but the existence of a large inscribed monument still mattered. It showed that royal order was fixed in writing, associated with divine approval, and meant to outlast the king's own lifetime.

Discovery and preservation

The best-known stele was found by French archaeologists at Susa, in present-day Iran, in 1901. It had probably been taken there as war booty from Mesopotamia centuries after Hammurabi. The monument is now in the Louvre Museum in Paris. Other copies and fragments show that the text circulated beyond a single stone, which helps scholars compare damaged passages and study how the legal tradition was transmitted.

What it did not mean

The Code of Hammurabi was not the first law text in world history, and historians debate how directly judges used it in everyday court cases. Earlier Mesopotamian legal collections existed, including the Code of Ur-Nammu and the Laws of Eshnunna. Hammurabi's text is famous because it is long, carefully organized, well preserved, and visually powerful, not because it invented law from nothing.

Why it matters

The Code of Hammurabi matters because it lets modern readers see how an ancient state connected justice, punishment, property, family, labor, religion, and royal image. It is both a legal document and a political monument. Studying it carefully shows that written law can protect order, express ideals, expose inequality, and serve power at the same time.