Hey timeline kin, it’s a sweltering day in the year 1755 BC on the streets of ancient Babylon. The great King Hammurabi, ruler of a vast and growing empire, has just ordered something unprecedented. In the courtyard of the temple of Marduk, skilled stone carvers are carefully inscribing hundreds of laws onto a massive black diorite stele nearly eight feet tall.
The king watches as the wedge-shaped cuneiform script flows across the stone — not hidden on fragile clay tablets for scribes alone, but displayed publicly for all his subjects to see. At the top of the stele, Hammurabi stands carved in relief, receiving the laws directly from the sun god Shamash. He intends this monument to proclaim justice, warn the powerful, protect the weak, and declare to the world that Babylon is a kingdom of order, not chaos.This is the story of the Code of Hammurabi — the most complete and famous early collection of written laws in human history. Created in ancient Mesopotamia nearly 3,800 years ago, it stands as one of humanity’s first major attempts to replace arbitrary justice with written rules that everyone could, in theory, understand. Though not the absolute first law code, it remains the most influential and best-preserved example from the ancient world.
Hammurabi and the Rise of Babylon
Hammurabi was the sixth king of the First Babylonian Dynasty. When he ascended the throne around 1792 BC, Babylon was still a modest city-state. Through a brilliant combination of military conquest, diplomacy, and strategic alliances, he unified much of Mesopotamia under Babylonian rule. By the end of his reign, he controlled a large empire stretching across the Tigris and Euphrates rivers.
Hammurabi was more than a conqueror. He saw himself as a shepherd of his people, responsible for their welfare and for maintaining cosmic order (ma’at in Egyptian terms, or kittum and mīšarum in Babylonian). Toward the end of his reign, he decided to codify and publicize laws that would apply across his diverse kingdom.
The Creation of the Code
The Code of Hammurabi was not created in isolation. Earlier Sumerian kings, such as Ur-Nammu (c. 2100 BC) and Lipit-Ishtar, had already issued law codes. Hammurabi built upon this tradition but took it further by creating a much larger and more comprehensive collection.
The famous stele, now housed in the Louvre Museum in Paris, contains 282 laws. It was originally placed in a public location, likely in the temple complex, so that literate citizens (and those who could hire scribes) could have disputes resolved according to known rules. The prologue boasts of Hammurabi’s achievements and presents the laws as divinely inspired — he received them from the god Shamash.
The laws cover almost every aspect of daily life:
- Trade and commerce (including harsh penalties for dishonest merchants)
- Family and marriage (rules about divorce, inheritance, and adultery)
- Agriculture and irrigation
- Medical practice and liability
- Slavery and social classes
- Justice and court procedures
“An Eye for an Eye” – Principles of Justice
The Code is famous for its principle of lex talionis — retribution in kind: “If a man destroys the eye of another man, they shall destroy his eye.” However, this harsh equality applied mainly between people of equal social status. The code clearly divided society into three classes: free persons (awīlum), commoners (muškēnum), and slaves (wardum). Punishments varied dramatically depending on the social rank of both the offender and the victim.
For example, if a man destroyed the eye of a free man, his own eye would be destroyed. But if he destroyed the eye of a commoner, he only had to pay a fine in silver. This reflected the deeply hierarchical nature of Babylonian society.
Many laws also protected the vulnerable. Women had certain legal rights (including the ability to own property and initiate divorce in some cases), and there were regulations intended to prevent abuse by the powerful.
Discovery and Modern Significance
For more than 3,000 years, the Code was lost to history. Then, in 1901, a French archaeological team led by Jacques de Morgan discovered the famous diorite stele at Susa in Iran, where it had been taken as war booty by the Elamites centuries after Hammurabi’s death. Other copies on clay tablets have since been found, showing that the code was widely distributed.
The Code of Hammurabi gave historians an extraordinary window into daily life in ancient Mesopotamia — its economy, family structures, values, and social problems. It showed that the idea of “rule of law” — that even kings should govern according to established principles rather than pure personal whim — is far older than we once imagined.
The Legacy of the Code of Hammurabi
The Code of Hammurabi represents one of the earliest surviving attempts to standardize legal authority within a large and diverse state. Although justice in Babylon remained deeply unequal by modern standards — with punishments varying according to social class, gender, and status — the code established the important principle that legal decisions could be expressed through written, publicly recognized rules rather than relying solely on personal judgment or local custom.
The stele itself served both legal and political purposes. Its lengthy prologue portrayed Hammurabi as a divinely chosen ruler entrusted by the god Shamash to establish order and justice throughout the land. In this sense, the monument functioned not only as a legal text, but also as a statement of royal legitimacy and imperial authority.
In 2026, the Code of Hammurabi continues to hold historical significance because it reveals how ancient societies understood law, punishment, social hierarchy, and state power. Many of the broader questions it raised — about fairness, legal accountability, and the relationship between authority and justice — remain central to legal and political debates today.
What part of the Code of Hammurabi’s story stays with you?
The image of King Hammurabi standing before the god Shamash receiving the laws?
The harsh but orderly system of “an eye for an eye”?
The moment archaeologists uncovered the black stele in 1901 after millennia of silence?
Or the realization that the idea of writing down laws so everyone could know the rules is one of the most important steps humanity ever took?
The image of King Hammurabi standing before the god Shamash receiving the laws?
The harsh but orderly system of “an eye for an eye”?
The moment archaeologists uncovered the black stele in 1901 after millennia of silence?
Or the realization that the idea of writing down laws so everyone could know the rules is one of the most important steps humanity ever took?
Write whatever is on your mind below. I read every word.
Books that shaped how I see the Code of Hammurabi:
Books that shaped how I see the Code of Hammurabi:
- Hammurabi’s Code: An Annotated Translation by M.E.J. Richardson
- King Hammurabi of Babylon by Marc Van De Mieroop
- The Code of Hammurabi translated by L.W. King
- Law and the Administration of Justice in the Old Babylonian Period by various scholars
Reliable sources I leaned on for key facts:

Comments