Ruler · Middle and Late Bronze Age · Old Babylonian Empire · Iraq
Hammurabi
c. 1810–c. 1750 BC
King of Babylon from about 1792 to 1750 BC, who made the city the master of Sumer and Akkad. His law code, carved on a tall stone pillar, is one of the earliest full sets of written laws to survive. The code set out punishments and prices for a whole society, from nobles to slaves.
Hammurabi was born about 1810 BC. He belonged to the First Dynasty of Babylon, a family of Amorite origin that had ruled the city for several generations. Babylon in his youth was a real city with temples, canals, and a busy river trade, but it was not a great power. Larger kingdoms stood around it. Rim-Sin of Larsa held much of the south. Shamshi-Adad of Assyria and then his sons held the north for a time. Eshnunna stood to the east on the Diyala river, and Mari stood far up the Euphrates. Hammurabi grew up in a court that had to watch all of them at once.
He inherited the throne from his father Sin-muballit about 1792 BC and reigned until about 1750 BC as the sixth king of the dynasty. For roughly his first thirty years he ruled as one king among several in Mesopotamia. He worked through alliances and treaties while stronger neighbors fought each other, and he changed partners as the balance shifted. The letters and year names from this long first part of the reign show a king building up his base at home. He built temples, dug canals, and kept the irrigation works of his small kingdom in repair. He also settled disputes, remitted debts at times, and strengthened the walls of Babylon and other towns. Nothing in the record of those years marks him out from other careful kings of the period. The record changes in his last fifteen years.
In those final years he moved by war, and he moved fast. He defeated forces from Elam and Eshnunna to the east. He took Larsa from Rim-Sin in 1763 BC, ending the rule of a king who had governed the south for decades. He took Eshnunna and other towns on the eastern frontier. He then turned on Mari, whose king Zimri-Lim had once been his ally. Hammurabi destroyed the palace of Mari after Zimri-Lim turned against him, and the city never recovered its old standing. By about 1755 BC he ruled Sumer and Akkad from Babylon. It was the first time one king had held the whole of southern Mesopotamia since the fall of Ur, centuries earlier. The conquests were complete only near the end of his life, and he had little time to settle them.
Government under Hammurabi ran through the king in person to a degree the sources let us see in unusual detail. Thousands of clay tablets survive, and many of them are letters to and from the king. They show him settling lawsuits, answering tax disputes, ordering canal work, and checking on officials who had failed to carry out instructions. Royal judges heard cases in the cities, and governors administered the conquered lands in his name. The state took taxes in grain, silver, and labor, and temple estates and palace land formed a large part of the economy. Soldiers held plots of land in return for service. The system depended on the king reading reports and sending orders, and it worked while a king with his energy sat on the throne.
Late in his reign Hammurabi had his laws cut on a tall diorite stele, now in the Louvre. The top of the stone shows the king standing before Shamash, the god of justice. Below the image the text sets out 282 provisions. They cover trade, loans and interest, debt and debt service, family and inheritance, wages for workers and fees for doctors, boats and boatmen, and injuries between persons. The penalties change with the rank of the parties. A man who put out the eye of a free man lost his own eye. The same injury done to a man of lower rank drew a fine in silver instead. The code was not the first set of written laws in Mesopotamia. The code of Ur-Nammu predates it by roughly three centuries, and the laws of Eshnunna and of Lipit-Ishtar also came earlier. Hammurabi's code is the most complete early code to survive, and later scribes copied it for more than a thousand years. That copying, as much as the reign itself, carried his name down through Babylonian history.
Hammurabi died about 1750 BC. His son Samsu-iluna succeeded him. The kingdom shrank steadily under pressure from the south and east during the son's reign. Rebels in the southern cities broke away, and Samsu-iluna lost ground his father had taken late and held briefly. The First Dynasty lasted for generations after that, at reduced size, until the Hittites sacked Babylon in 1595 BC by the middle chronology. Hammurabi stands in the record as two things at once. He was a patient diplomat for thirty years and a conqueror for fifteen, and he was a lawgiver whose stone outlasted his empire by a wide margin. The empire he assembled fell apart within a generation. The stele still stands in a museum, and the letters still show a king who ruled his kingdom down to the level of a blocked canal and a disputed field.
Facts
- Born
- About 1810 BC.
- Source: Encyclopaedia Britannica, Hammurabi
- Died
- About 1750 BC.
- Source: Encyclopaedia Britannica, Hammurabi
- Reign
- About 1792 to 1750 BC, sixth king of the First Dynasty of Babylon.
- Source: Encyclopaedia Britannica, Hammurabi
- Realm
- Babylon, raised to rule over Sumer and Akkad.
- Source: Encyclopaedia Britannica, Hammurabi
- Known for
- The Code of Hammurabi, inscribed on a diorite stele now in the Louvre.
- Source: Encyclopaedia Britannica, Hammurabi
Sources
- Encyclopaedia Britannica, Hammurabi Source
Source links accessed 22 November 2026.
Images

Related
- IraqConnected
- BabyloniaSame era
- Hittite EmpireSame era
- Mycenaean GreeceSame era
- Shang DynastySame era
- Middle Kingdom EgyptSame era
Keep reading
Test yourself
When was Hammurabi born?
- About 1810 BC
- 259 BC
- 1711
- 598
Answer
About 1810 BC — Born: About 1810 BC.
When did Hammurabi die?
- About 232 BC
- About 1750 BC
- 1799
- 705
Answer
About 1750 BC — Died: About 1750 BC.
When did Hammurabi reign?
- About 1792 to 1750 BC, sixth king of the First Dynasty of Babylon
- About 1479 to 1425 BC
- c. 1332–1323 BCE in the dating used here; some chronologies give c. 1336–1327 BCE
- About 1279 to 1213 BC, 66 years
Answer
About 1792 to 1750 BC, sixth king of the First Dynasty of Babylon — Reign: About 1792 to 1750 BC, sixth king of the First Dynasty of Babylon.
What realm did Hammurabi rule?
- Babylon, raised to rule over Sumer and Akkad
- The Achaemenid Persian Empire at its full extent
- New Kingdom Egypt
- New Kingdom Egypt, at its greatest territorial extent
Answer
Babylon, raised to rule over Sumer and Akkad — Realm: Babylon, raised to rule over Sumer and Akkad.
True or false: King of Babylon from about 1792 to 1750 BC, who made the city the master of Sumer and Akkad.
- False
- True
Answer
True — King of Babylon from about 1792 to 1750 BC, who made the city the master of Sumer and Akkad.
My notes
Highlights on this page
None yet.
Myth vs. evidence
The myth
Hammurabi wrote the first laws in history.
The evidence
His code, from about 1754 BCE, is the most complete early code to survive, not the first. The code of Ur Nammu predates it by roughly three centuries, and the laws of Eshnunna and of Lipit Ishtar also came earlier.
Sources: British Museum, the Code of Hammurabi; Martha T. Roth, Law Collections from Mesopotamia and Asia Minor
Spotted an error on this page? Email [email protected] and it will be checked against the sources.
