Code of Hammurabi

The Code of Hammurabi is an early Babylonian law code from around 1754 BCE. In Early World Civilizations, it shows how Mesopotamian rulers used written laws to organize society and enforce hierarchy.

Last updated July 2026

What is the Code of Hammurabi?

The Code of Hammurabi is one of the best known law codes from ancient Mesopotamia, created under King Hammurabi of Babylon around 1754 BCE. It set out 282 laws covering trade, property, family life, labor, injury, and punishment.

In Early World Civilizations, this code matters because it shows how a ruler could turn law into a public tool of government. The laws were carved onto a stone stele and displayed openly, which meant they were meant to be seen, not kept secret inside the palace. That public display sent a message: the king claimed authority to define justice for the whole kingdom.

The code was not equal in the modern sense. Penalties often changed depending on social rank, so the same offense could lead to different outcomes for a free person, a commoner, or an enslaved person. That makes the code a good example of hierarchy in ancient society. It was not trying to remove class differences, it was reinforcing them.

A common idea linked to the code is lex talionis, or law of retaliation, which is the idea that punishment should match the harm done, sometimes described as an eye for an eye. In practice, the code did not always work as a simple one-for-one rule, but it did use the idea of proportionate punishment in a very direct way. Some laws set fixed fines, while others ordered harsher penalties for serious injuries or theft.

The code also shows continuity and consolidation. Hammurabi did not invent all of these laws from scratch. Many came from earlier Mesopotamian legal traditions, but he compiled and standardized them to help unify a growing empire. That is why historians treat the code as both a legal text and a political statement about order, authority, and control.

For the course, the easiest way to read the code is as evidence. It tells you what Babylonian elites valued, what problems everyday life created, and how rulers tried to manage conflict in a complex city-based society.

Why the Code of Hammurabi matters in Early World Civilizations

The Code of Hammurabi matters because it gives you direct evidence of how early states in Mesopotamia tried to run society. Instead of guessing what Babylonian life was like, you can look at the laws and see what counted as theft, damage, contract disputes, family conflict, or professional negligence.

It also helps you recognize a bigger pattern in Early World Civilizations: once states grew larger, rulers needed written rules to manage people they could not personally know. A law code made authority more standardized. It also made power visible, since the king could present himself as the source of justice.

The code is useful for comparison too. You can contrast it with other ancient legal or religious texts and ask whether law was based on divine authority, royal authority, or custom. You can also compare Babylonian social hierarchy with other civilizations in the course, especially when looking at class, slavery, and gender roles.

If you see a prompt about justice, order, hierarchy, or the rise of centralized states, the Code of Hammurabi is one of the strongest pieces of evidence you can use. It shows that early civilization was not only about cities and kings, but also about rules that shaped everyday behavior.

Keep studying Early World Civilizations Unit 3

How the Code of Hammurabi connects across the course

Lex Talionis

This is the punishment principle most often linked to Hammurabi's code. It means punishment should match the harm done, so the response is measured rather than random. When you see a law code that uses body-for-body or injury-for-injury logic, lex talionis helps explain the kind of justice the society thought was fair.

Cuneiform

Hammurabi's laws had to be written down in a script people could preserve and display, and cuneiform was the Mesopotamian writing system used for that job. Knowing cuneiform helps you connect law to record keeping, administration, and state power. Written law only works if a civilization has the technology to preserve and copy it.

Mesopotamia

The code came from Mesopotamia, where city-states and later empires depended on managing land, trade, irrigation, and social order. That setting explains why legal codes mattered so much. In a busy river valley with property disputes and social inequality, written laws became a way to stabilize daily life.

Stele of Hammurabi

The stele is the physical object that carried the code. It matters because the form of the monument tells you the laws were meant for public authority as much as legal use. A carved stone monument makes the king's justice look permanent, official, and connected to divine or royal power.

Is the Code of Hammurabi on the Early World Civilizations exam?

A quiz question might ask you to identify what the Code of Hammurabi reveals about Babylonian society. In a short answer or essay, use it as evidence for hierarchy, centralized rule, and the growth of written law in Mesopotamia. If you get a source-based question, look for details like unequal punishment, public display on a stele, or laws about trade and family life. Those clues let you explain not just what the code was, but what kind of state used it and why.

The Code of Hammurabi vs Stele of Hammurabi

The Code of Hammurabi is the set of laws, while the Stele of Hammurabi is the stone monument that displays them. They are closely linked, but not the same thing. If a question asks about the legal content, use the code. If it asks about the carved object or public monument, use the stele.

Key things to remember about the Code of Hammurabi

  • The Code of Hammurabi is an early Babylonian law code from around 1754 BCE with 282 laws on daily life, property, family, and punishment.

  • It shows how Mesopotamian rulers used written law to organize society and project authority across a growing empire.

  • The code reflects social hierarchy, because punishments could change based on the status of the offender and the victim.

  • Its public display on a stone stele makes it both a legal document and a political statement about royal power.

  • When you study it, focus on what it reveals about order, justice, and the values of ancient Babylon, not just the facts of the laws themselves.

Frequently asked questions about the Code of Hammurabi

What is the Code of Hammurabi in Early World Civilizations?

It is a Babylonian law code created under King Hammurabi around 1754 BCE. In the course, it is used to show how ancient Mesopotamian states organized justice, property, and social behavior through written law.

Why does the Code of Hammurabi matter for Mesopotamia?

It shows that Mesopotamian rulers did more than conquer territory. They also built systems of order by writing laws, displaying them publicly, and enforcing different penalties based on social rank.

Is the Code of Hammurabi the same as the Stele of Hammurabi?

No. The code is the set of laws, and the stele is the carved stone monument that displays them. The stele is the object, while the code is the legal content written on it.

What does the Code of Hammurabi show about Babylonian society?

It shows a society organized around hierarchy, property, family structure, and royal authority. The laws make it clear that justice was not equal for everyone, since status affected punishment.