Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

Hammurabi

Hammurabi was the Babylonian king who is best known for the Code of Hammurabi, one of the earliest major written law codes. In Ancient Mediterranean history, he represents Babylonian state power, law, and social order in Mesopotamia.

Last updated July 2026

What is Hammurabi?

Hammurabi was the sixth king of Babylon’s First Dynasty, ruling in the 18th century BCE, and he is most famous for the law code linked to his name. In Ancient Mediterranean history, he is not just a ruler with a famous plaque, he is a symbol of how early states tried to organize society through written rules, royal authority, and public display.

The best-known source connected to him is the Code of Hammurabi, a large set of laws carved on a stele. The code covered everyday problems like trade disputes, property damage, marriage, inheritance, hiring laborers, and punishment for crimes. That makes it useful for historians because it shows what Babylonian society cared about enough to regulate in writing.

The code also reflects a sharply unequal society. Penalties changed depending on social status, so the same offense could bring different punishment for a free person, a dependent person, or an enslaved person. That tells you the law was not trying to make everyone equal, it was trying to preserve order inside a ranked social system.

Hammurabi’s reign mattered politically too. He expanded Babylon’s power, bringing more city-states under one rule and helping turn Babylon into a major Mesopotamian center. That makes him part of the story of early empire building, where conquest, administration, and law all worked together.

One common classroom mistake is to treat the code like a modern constitution. It is better seen as a royal law collection that projected authority and set expectations. The famous idea of “an eye for an eye” comes from its style of retaliation, but the code was broader than that single phrase. It is a window into how Mesopotamian rulers wanted justice, hierarchy, and daily life to work.

Why Hammurabi matters in Ancient Mediterranean

Hammurabi shows up whenever Ancient Mediterranean history shifts from scattered city-states to stronger centralized rule. He helps explain how Mesopotamian kings used law as a political tool, not just a set of punishments. If you are reading a source about Babylonian government, social class, or legal authority, Hammurabi is usually the name that anchors that discussion.

He also gives you a concrete way to talk about historical evidence. The stele is a primary source that reveals values through the laws themselves, the prologue, and the public carving of the text. Instead of guessing what Mesopotamian society was like, you can point to trade rules, family laws, and unequal punishments as evidence of hierarchy and state control.

Hammurabi connects directly to broader themes in the course, including Mesopotamian city-states, early empires, writing, and religion. Kings often claimed divine backing, so law could be presented as both practical administration and sacred authority. That makes him useful for essays or short answers that ask how governments justified power in the ancient world.

Keep studying Ancient Mediterranean Unit 2

Official unit cheatsheet

open one-pager

How Hammurabi connects across the course

Code of Hammurabi

This is the law collection most people mean when they say Hammurabi. The code shows how Babylon organized property, family life, and crime through written rules, and it is the main evidence historians use to study his reign. If you are analyzing the term, the code is the concrete artifact attached to the king’s name.

Babylon

Hammurabi made Babylon more than a city by turning it into the center of a larger kingdom. When you see Babylon in this unit, think about royal administration, military expansion, and the cultural prestige that came from law and writing. Hammurabi is one reason Babylon became a lasting name in Ancient Mediterranean history.

Mesopotamia

Hammurabi belongs to the larger Mesopotamian world of city-states, irrigation, trade, and cuneiform writing. His laws make more sense when you place them in a region where governments needed to manage land, labor, and conflict in dense urban societies. He is a specifically Babylonian example of a much older Mesopotamian tradition.

Divine Kingship

Hammurabi’s authority fits the idea that rulers could present themselves as chosen or sanctioned by the gods. In Mesopotamia, law was often tied to sacred legitimacy, not just force. This connection helps you explain why a king would carve laws on a public stele instead of keeping them private.

Is Hammurabi on the Ancient Mediterranean exam?

A quiz question might ask you to identify Hammurabi from a source excerpt, a stele image, or a description of social inequality in Babylon. In a short response or essay, you might explain how his code shows the power of early states to regulate daily life through written law. If you get a passage with different punishments for different social classes, Hammurabi is a strong piece of evidence to cite. You can also use him in timeline or comparison questions about Mesopotamian kingship, especially when the prompt asks how law, empire, and social hierarchy worked together.

Hammurabi vs Code of Hammurabi

Hammurabi is the king, while the Code of Hammurabi is the set of laws associated with him. In practice, people often use the name Hammurabi to refer to the code, but on a test or in discussion you should separate the ruler from the legal text.

Key things to remember about Hammurabi

  • Hammurabi was a Babylonian king, not just a law code name.

  • The Code of Hammurabi is one of the clearest examples of early written law in Mesopotamia.

  • His laws show a society with clear social ranks, since punishments changed based on status.

  • Hammurabi matters because he connects law, empire, and royal authority in Ancient Mediterranean history.

  • The stele is useful evidence because it turns royal power into a public, written message.

Frequently asked questions about Hammurabi

What is Hammurabi in Ancient Mediterranean history?

Hammurabi was the sixth king of Babylon’s First Dynasty, famous for the Code of Hammurabi. In Ancient Mediterranean history, he stands for early Babylonian empire building and the use of written law to control society.

Is Hammurabi the same thing as the Code of Hammurabi?

No, Hammurabi is the ruler, and the Code of Hammurabi is the legal collection linked to him. The distinction matters because a question may ask about the king’s political power or about the laws themselves.

What does Hammurabi’s code show about Mesopotamian society?

It shows that Mesopotamian society was organized by hierarchy, property, family structure, and state authority. The laws cover everyday problems, but they also reveal that social status changed how justice worked.

Why do historians care about Hammurabi’s stele?

The stele preserves a public version of the laws, so it is a primary source for Babylonian government and values. It lets historians see how a ruler presented justice, order, and legitimacy to his people.

Hammurabi in Ancient Mediterranean History | Fiveable