HomeHistoryAncient HistoryWhat is Hammurabi's Code?
History·2 min·Updated Mar 13, 2026

What is Hammurabi's Code?

Hammurabi's Code

Quick Answer

This is a set of laws created by the Babylonian king Hammurabi around 1754 BC. It is one of the oldest known legal codes and outlines rules and punishments for various offenses.

Overview

Hammurabi's Code is a collection of 282 laws that were established by King Hammurabi of Babylon. These laws cover a wide range of topics, including trade, family relations, and criminal justice. Each law specifies a punishment that corresponds to the offense, following the principle of 'an eye for an eye.' This means that the punishment should fit the crime, which was a novel idea at the time. The code was inscribed on a large stone stele and displayed for all to see, emphasizing the importance of law and order in society. It aimed to ensure justice and protect the weak from the powerful, establishing a system where everyone was expected to follow the same rules. For example, if a builder constructed a house that collapsed and caused harm or death, the builder could be held responsible and face severe penalties. Hammurabi's Code matters because it laid the groundwork for future legal systems and concepts of justice. It represents one of the earliest attempts to create a formal legal structure that governed daily life. By providing clear guidelines and consequences, it helped maintain social order and influenced many civilizations that followed.


Frequently Asked Questions

The code includes laws on various topics such as property rights, family law, and trade regulations. It also addresses issues like theft, assault, and the responsibilities of builders and merchants.
Enforcement was carried out by local officials and judges who interpreted the laws. The code emphasized that justice should be applied fairly, but the actual enforcement could vary depending on social status.
While the specific laws are not used today, the principles of justice and fairness it introduced continue to influence modern legal systems. Concepts like proportional punishment and the idea of a written legal code are foundational in many countries' laws.