Back to Index
What is the Code of Hammurabi?
4/16/2026

What is the Code of Hammurabi?

Dating back to the 18th century BCE, the Code of Hammurabi is one of the oldest and most significant legal codes from ancient Mesopotamia. Written by King Hammurabi, the sixth ruler of the Babylonian dynasty, who held the throne from 1792 to 1750 BCE, it is a collection of 282 ancient Babylonian laws unifying his empire and daily life.

The Code of Hammurabi is one of the oldest and most vital legal codes in history.


It was written in 1754 BCE by King Hammurabi, who ruled the Babylonian Empire from 1792 to 1750 BCE. The King had the 282 laws written on a stone stele, as he wanted to make them visible to his subjects to establish order and justice throughout his kingdom.


On the stele are 282 laws that cover property rights, family law, contracts, and criminal justice.


They cover the main ideas of: an eye for an eye; punishments aimed to match the crime in a concept called "lex talionis"; social ranks; punishments change based on a person's social class; and daily life; laws covering trade, theft, family, divorce, and wages for workers.


Furthermore, the significance of the Code of Hammurabi lies in its role as a foundational document for the development of legal systems in Mesopotamia.


The Code of Hammurabi wasn't the only foundational legal document of Ancient Mesopotamia; the Code of Ur-Nammu, written in 2100 BCE, and the Code of Lipit-Ishtar, written in 1930 BCE, also influenced laws and protections throughout the civilization.


It served as a model for legal codes that came after and demonstrated the vital importance of written laws to keep social order in place.


Yet, in Ancient Mesopotamia, the laws applied differently to the three main social classes of the Babylonian Empire.


Furthermore, the Code of Hammurabi emphasized the responsibility of the King to protect the weak and give justice to all members of society.


Overall, the Code of Hammurabi helped signify law and order in Mesopotamia, creating an equal society.  

Frequently Asked Questions

1) Is the Code of Hammurabi the oldest known law code?

It is not, but it remains the most complete and detailed collection of laws from that time in ancient Mesopotamia.

Source: https://www.youtube.com/watch?v=TXyMN9bGe0I&t=13

2) What does "an eye for an eye" mean here?

It means punishments match the crime's exact damage, and punishments often change depending on a person's social class or status.

Source: https://www.youtube.com/watch?v=TXyMN9bGe0I&t=13

3) Where is the artifact today?

The Code of Hammurabi is located in the Louvre. It was found by French archaeologists in 1901 in present-day Iran.

Source: https://www.studentsofhistory.com/hammurabi-s-code

Why it matters

The Code of Hammurabi established the idea that written laws could create justice and protect the vulnerable in society.

The Code of Hammurabi Law and Order King Hammurabi Ancient Mesopotamia The Code of Ur-Nammu

Continue Reading