LLMpediaThe first transparent, open encyclopedia generated by LLMs

Code of Hammurabi

Generated by GPT-5-mini
Note: This article was automatically generated by a large language model (LLM) from purely parametric knowledge (no retrieval). It may contain inaccuracies or hallucinations. This encyclopedia is part of a research project currently under review.
Article Genealogy
Parent: Ancient Babylon Hop 1
Expansion Funnel Raw 30 → Dedup 22 → NER 12 → Enqueued 5
1. Extracted30
2. After dedup22 (None)
3. After NER12 (None)
Rejected: 10 (not NE: 10)
4. Enqueued5 (None)
Code of Hammurabi
Code of Hammurabi
NameCode of Hammurabi
CaptionThe basalt stele of the Code of Hammurabi (modern Musée du Louvre)
Datec. 1754 BC (Middle Chronology)
PlaceBabylon
WriterTraditionally attributed to Hammurabi
LanguageAkkadian (in cuneiform)
MaterialBasalt stele; clay tablets (copies)

Code of Hammurabi

The Code of Hammurabi is a collection of laws enacted by the Babylonian king Hammurabi during his reign over Babylon in the 18th century BC. It is one of the earliest and most complete written legal codes from ancient Mesopotamia and matters for its articulation of legal standards, penalties, and the relationship between ruler, society, and temples in the Ancient Near East.

Historical Context and Hammurabi's Reign

The code was produced in the political context of the Old Babylonian period when Hammurabi (reigned c. 1792–1750 BC, Middle Chronology) consolidated city-states across southern Mesopotamia into a centralized kingdom based in Babylon. His reign followed earlier legal and administrative traditions developed in Sumer and Akkad, including law collections from Eshnunna and legal practice in Larsa. The text reflects the socio-economic structures of the Old Babylonian Empire, including property relations, commercial transactions, family law, and obligations tied to temple and palace institutions such as the cult of Marduk.

Structure and Content of the Code

The Code survives mainly on a single basalt stele and numerous clay tablet copies of the laws. It opens with a prologue praising Marduk and legitimizing Hammurabi's authority, and closes with an epilogue that emphasizes justice and royal responsibility. The substantive body comprises 282 laws addressing theft, debt, slavery, marriage, divorce, trade, professional liability, wages, and bodily injury. The laws employ casuistic ("if... then...") formulations and are arranged by topic rather than by abstract legal principle, resembling contemporary compilations from Eshnunna and later Assyrian practice.

The Code articulates principles that reinforce hierarchical social order: different penalties apply depending on social status—free persons, commoners, and slaves. Notable legal motifs include lex talionis (an eye for an eye), varying punitive fines, and compensation obligations. The text balances private restitution and public penalty, regulating contracts, property, and family relations to preserve social stability and economic continuity. The prologue and epilogue stress the king's role as dispenser of justice, echoing Mesopotamian kingly ideology found in royal inscriptions and the role of temples as juridical centers.

Administration, Courts, and Enforcement

Enforcement of the Code depended on a network of palace officials, local notaries, temple administrators, and judges in city courts. The document presupposes written contracts witnessed by scribes trained in cuneiform, and it interacts with administrative archives such as economic tablets from Nippur and Mari. Punishments ranged from fines and compensation to corporal or capital punishment, executed by local authorities acting under royal prerogative. The legal culture combined royal edict, customary law, and professional jurisprudence practiced by city judges and merchants.

Material Form: Stele, Inscriptions, and Transmission

The best-known witness is a nearly complete basalt stele discovered at Susa (modern Shush) in the 12th century BC, taken as spoil by the Elamite king Kudur-Nahhunte. The stele bears an image of Hammurabi receiving the law from the god Shamash and an Akkadian inscription in cuneiform. Numerous clay tablet copies circulated in scribal schools and administrative centers, producing textual variants preserved in archives excavated at Sippar, Babylon, and Larsa. European discovery and translation in the 19th century by scholars such as Georges Cuvier's contemporaries and later Assyriologists advanced understanding of Mesopotamian law.

Influence on Ancient Babylonian Society

Within Babylonian society the Code functioned as both legal reference and ideological instrument endorsing royal legitimacy. It standardized expectations for commercial exchange, professional responsibility (e.g., physicians, builders), land tenure, and family law, thereby promoting economic predictability and social order. The code's visibility in temples and legal practice reinforced the intertwined authority of palace and priesthood, shaping dispute resolution and local governance across the Old Babylonian heartland.

The Code influenced subsequent Mesopotamian legal practice, including Assyrian laws and later compilations. Its formulations informed Roman and Hebrew Bible scholarship debates about ancient law; biblical scholars and comparative legal historians have examined parallels with laws in the Hebrew Bible and Hittite law. Modern legal historiography regards the Code as foundational evidence of early state law, administrative capacity, and the role of written statutes in consolidating centralized authority. Its display in museums, most notably the Louvre Museum in Paris, has made it a focal point for public understanding of ancient justice, royal duty, and the evolution of legal institutions.

Category:Ancient Babylon Category:Ancient legal codes Category:Hammurabi