---
title: "Code of Hammurabi | Intro to Humanities"
description: "Code of Hammurabi is Babylon’s law code of 282 rules, showing retribution, class-based penalties, and early ideas of public justice in Intro to Humanities."
canonical: "https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi"
type: "key-term"
subject: "Intro to Humanities"
unit: "Unit 1"
---

# Code of Hammurabi | Intro to Humanities

## Definition

The Code of Hammurabi is an ancient Babylonian law code from around 1754 BCE. In Intro to Humanities, it shows how Mesopotamian society used public law, punishment, and social rank to organize life.

## What It Is

The Code of Hammurabi is an early Babylonian law code carved on a stele around 1754 BCE, during King Hammurabi’s reign. In Intro to Humanities, you usually study it as a text that reveals how one of the world’s earliest cities tried to turn justice into something visible, public, and enforceable.

It is made up of 282 laws covering everyday life, not just crimes. The rules deal with trade, property, labor, family life, debt, injury, and social order. That range matters because it shows law as a system for running society, not just punishing bad behavior after the fact.

A famous feature of the code is lex talionis, the principle of retaliation, often summarized as “an eye for an eye.” But the code is more complicated than that slogan. Punishments changed depending on social class, which tells you that Babylonian justice was not equal in the modern sense. A noble, commoner, or enslaved person could receive different treatment for the same offense.

The code also includes an early form of legal procedure. It allowed accused people to present their case before a judge, which is one reason historians point to it as an early step toward formal legal process. That does not make it democratic, but it does show an effort to make judgment follow rules rather than pure personal power.

The stele itself matters as much as the laws. Public display made the code part of civic life, almost like a permanent declaration of royal authority and social values. The laws were not hidden in a private archive. They were meant to be seen, remembered, and used as proof that the king was protecting order in Babylonian society.

## Why It Matters

The Code of Hammurabi matters in Intro to Humanities because it gives you a concrete example of how a civilization turns values into institutions. Instead of talking abstractly about “justice,” the code shows what justice looked like in ancient Mesopotamia: punishment, hierarchy, property rules, and public authority all tied together.

It also helps you read early civilizations as cultural systems, not just as lists of dates and rulers. The code reflects trade, family structure, labor relationships, and class divisions, so a single text becomes evidence for everyday life. That is a very humanities-style move: using one artifact to interpret a whole society.

You can also compare it with later legal traditions. The code is not modern law, but it gives a starting point for thinking about written law, state power, and the idea that rules should be made public. In class, that often comes up when you discuss how early empires controlled territory and created shared norms across large populations.

Finally, it is useful for seeing how texts can carry ideology. Hammurabi is not just handing out rules, he is presenting kingship as just, ordered, and divinely supported. That makes the code part legal document, part political message.

## Connections

### Lex Talionis

Lex talionis is the punishment principle most people associate with Hammurabi, but the relationship is a little broader than a slogan. The code uses retaliation as one way to keep order, yet it also adjusts punishments by social class and offense type. That makes it a good example of how a legal idea can be strict and unequal at the same time.

### Stele

The Code of Hammurabi was carved on a stele, so the physical object matters to interpretation. A stele is not just a surface for writing, it is a public monument. In humanities terms, that means the law was meant to be seen as authority in stone, not just stored as private information.

### [Babylon](/introduction-humanities/key-terms/babylon)

Babylon is the city and political center behind the code, so the law makes more sense when you place it in an urban empire. The code helps show how Babylon organized trade, family life, and property in a complex city society. It also reflects the power of a king who wanted to unify many people under one legal order.

### Mesopotamia

The Code of Hammurabi is one of the clearest examples of Mesopotamian civilization producing written law. When you study Mesopotamia, you are looking at the rise of cities, writing, and government all at once. The code fits that pattern because it shows how writing became a tool for ruling and preserving social rules.

## On the AP Exam

A quiz question may ask you to identify the Code of Hammurabi from a quote, image of the stele, or description of “eye for an eye” justice. In a short essay or discussion post, you might use it as evidence that Mesopotamian civilization had organized government, social hierarchy, and public law.

If you get a compare-and-contrast prompt, a strong move is to explain how the code mixes order and inequality. You can say it formalized legal procedure, but it also gave different punishments to different social classes. That kind of detail shows you are reading it as a historical and cultural document, not just memorizing a name.

When you analyze a source, look for what the code reveals about power. Ask who made the rules, who was protected by them, and who got treated differently. That is the kind of interpretation humanities assignments usually want.

## Code of Hammurabi vs Lex Talionis

Lex talionis is the punishment principle, while the Code of Hammurabi is the full Babylonian law code that includes that principle among many others. If you see “an eye for an eye,” that is lex talionis. If you see a set of 282 laws on a stele from Babylon, that is the Code of Hammurabi.

## Key Takeaways

- The Code of Hammurabi is an ancient Babylonian law code carved on a public stele around 1754 BCE.
- It covers everyday life, including property, family, labor, trade, and injury, so it shows how law shaped society.
- Its punishments often follow lex talionis, but they also vary by social class, which reveals a hierarchical world.
- The code is useful in Intro to Humanities because it turns one artifact into evidence about government, justice, and cultural values.
- You should read it as both a legal text and a political message about royal authority and social order.

## FAQs

### What is the Code of Hammurabi in Intro to Humanities?

It is an ancient Babylonian law code from around 1754 BCE that shows how Mesopotamian society organized justice, property, family life, and social rank. In Intro to Humanities, it is studied as a historical text and as a cultural artifact. It helps you see how law can reflect the values of a civilization.

### Is the Code of Hammurabi the same as eye for an eye?

Not exactly. “Eye for an eye” refers to lex talionis, the principle of retaliation, which appears in the code. The full Code of Hammurabi is much larger and includes many rules about business, family, and property, not just punishments.

### Why was the Code of Hammurabi put on a stele?

Putting it on a stele made the law public and permanent. That matters because it turned justice into something people could see, not just something a ruler announced privately. In a humanities class, that public display can be read as a statement about power and order.

### How does the Code of Hammurabi show social class?

The punishments in the code change depending on whether a person is a noble, commoner, or enslaved person. That tells you Babylonian society was hierarchical and that equal treatment under law was not the goal. It is a strong example of how law can reinforce social structure.

## Related Study Guides

- [1.1 Mesopotamian civilization](/introduction-humanities/unit-1/mesopotamian-civilization/study-guide/7RF0lAFdshB2tZ2n)

## About This Document

Canonical Fiveable pages are available as Markdown at the same path plus `.md`.

- [llms.txt](https://fiveable.me/llms.txt): index of Fiveable's sections and URL patterns
- [llms-full.txt](https://fiveable.me/llms-full.txt): complete subject and unit listing
- [MCP server](https://fiveable.me/mcp): call Fiveable as tools instead of fetching pages (`https://fiveable.me/api/mcp`)
- [MCP server for AP teachers](https://fiveable.me/mcp/teachers): a teacher's classes, assignments and AP-rubric grading (`https://fiveable.me/api/mcp/teacher`)

## Structured Data

```json
{"@context":"https://schema.org","@graph":[{"@type":"LearningResource","@id":"https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi#resource","name":"Code of Hammurabi | Intro to Humanities","url":"https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi","learningResourceType":"Concept explainer","educationalLevel":"AP® / High School","about":{"@id":"https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi#term"},"audience":{"@type":"EducationalAudience","educationalRole":"student"},"dateModified":"2026-07-03T02:23:12.326Z","isPartOf":{"@type":"Collection","name":"Intro to Humanities Key Terms","url":"https://fiveable.me/introduction-humanities/key-terms"},"author":{"@type":"Organization","@id":"https://fiveable.me/editorial#content-team","name":"Fiveable Content Team","url":"https://fiveable.me/editorial","parentOrganization":{"@id":"https://fiveable.me/#organization"},"member":[{"@type":"Person","name":"Amanda DoAmaral","sameAs":["https://www.linkedin.com/in/adoamaral"]},{"@type":"Person","name":"Becky Bahr","sameAs":["https://www.linkedin.com/in/becky-bahr-b52743132"]}]},"publisher":{"@type":"Organization","name":"Fiveable","url":"https://fiveable.me"}},{"@type":"DefinedTerm","@id":"https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi#term","name":"Code of Hammurabi","description":"The Code of Hammurabi is an ancient Babylonian law code from around 1754 BCE. In Intro to Humanities, it shows how Mesopotamian society used public law, punishment, and social rank to organize life.","url":"https://fiveable.me/introduction-humanities/key-terms/code-of-hammurabi","inDefinedTermSet":{"@type":"DefinedTermSet","name":"Intro to Humanities Key Terms","url":"https://fiveable.me/introduction-humanities/key-terms"}},{"@type":"FAQPage","mainEntity":[{"@type":"Question","name":"What is the Code of Hammurabi in Intro to Humanities?","acceptedAnswer":{"@type":"Answer","text":"It is an ancient Babylonian law code from around 1754 BCE that shows how Mesopotamian society organized justice, property, family life, and social rank. In Intro to Humanities, it is studied as a historical text and as a cultural artifact. It helps you see how law can reflect the values of a civilization."}},{"@type":"Question","name":"Is the Code of Hammurabi the same as eye for an eye?","acceptedAnswer":{"@type":"Answer","text":"Not exactly. “Eye for an eye” refers to lex talionis, the principle of retaliation, which appears in the code. The full Code of Hammurabi is much larger and includes many rules about business, family, and property, not just punishments."}},{"@type":"Question","name":"Why was the Code of Hammurabi put on a stele?","acceptedAnswer":{"@type":"Answer","text":"Putting it on a stele made the law public and permanent. That matters because it turned justice into something people could see, not just something a ruler announced privately. In a humanities class, that public display can be read as a statement about power and order."}},{"@type":"Question","name":"How does the Code of Hammurabi show social class?","acceptedAnswer":{"@type":"Answer","text":"The punishments in the code change depending on whether a person is a noble, commoner, or enslaved person. That tells you Babylonian society was hierarchical and that equal treatment under law was not the goal. It is a strong example of how law can reinforce social structure."}}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Intro to Humanities","item":"https://fiveable.me/introduction-humanities"},{"@type":"ListItem","position":2,"name":"Key Terms","item":"https://fiveable.me/introduction-humanities/key-terms"},{"@type":"ListItem","position":3,"name":"Unit 1","item":"https://fiveable.me/introduction-humanities/unit-1"},{"@type":"ListItem","position":4,"name":"Code of Hammurabi"}]}]}
```
