Module 1: Ancient Legal Codes & Early Foundations
Before Rome, before the common law, there were already written laws — and the structural ideas they introduced still echo through everything covered later in this course. Every section below is pre-written and deterministic; nothing is generated live.
Free preview
The first two lectures of History of Law are free, so you can see exactly what the course is like. Like it? Unlock the whole course.
Look first, then buy. Free previews on every product page. Secure payment by Stripe. Pay once, keep it forever. Details
Part 1 — Learn the Material
Read this first. Everything below assumes you know these things — come back here any time you need a refresher.
Before Written Law: Custom, Oral Tradition & Early Legal Order
Long before any written code, disputes were resolved through custom and oral tradition, typically adjudicated by community elders or chiefs whose authority rested on social standing and shared memory of past practice, not a written text.
Reconstructing exactly how this pre-literate legal order actually worked is genuinely difficult, precisely because it left no direct written record of itself — historians instead piece it together from indirect evidence: comparative anthropological studies of other oral-custom societies, and telling references embedded within the earliest written codes themselves, which frequently describe their own provisions as merely recording or systematizing customs already understood to be ancient and settled rather than inventing entirely new rules. Sumerian temple and administrative records also document a real institution called the puhrum, a local assembly of free male citizens that functioned in part as a dispute-resolution body even before Ur-Nammu’s code was ever written down — genuine evidence that organized, community-based adjudication predates written law by a considerable stretch, rather than written codification itself being the moment organized legal order first began.
Example. A dispute over grazing land between two herding families would have been brought before a respected village elder, who resolved it by applying remembered custom — the same kind of dispute the earliest written codes would later address directly.
The Code of Ur-Nammu & the Earliest Written Laws
The Code of Ur-Nammu, issued in Sumer around 2100 BCE, is generally recognized as the earliest known written law code — predating Hammurabi’s far more famous code by several centuries, and already using a casuistic structure with a notable emphasis on monetary compensation over physical punishment for many offenses.
The code survives only in fragmentary cuneiform tablets, pieced together and first translated into a coherent, publishable text by the Sumerologist Samuel Noah Kramer in 1952 — over a century after the first Mesopotamian cuneiform archaeology began, and decades after Hammurabi’s far more famous, far better-preserved code had already become widely known. Scholars still genuinely debate the code’s exact authorship: its prologue’s surviving fragments most plausibly point to Ur-Nammu himself, founder of the Third Dynasty of Ur, though some scholars have argued the surviving text may actually reflect a later, expanded edition promulgated under his son and successor Shulgi. That genuine attribution uncertainty is a useful reminder that even “the earliest known written law” is itself a fragmentary, actively reconstructed historical artifact, not a single clean, undisputed document sitting fully intact in an archive somewhere.
Example. Where a later code might prescribe physical punishment for certain injuries, several Ur-Nammu provisions instead required the offender to pay a specified quantity of silver — an early example of a compensation-based approach to harm.
The Code of Hammurabi — Structure & Content
Issued around 1754 BCE in Babylon and inscribed on a monumental stele, the Code of Hammurabi contains roughly 282 casuistic provisions covering commercial, family, and criminal matters, framed by a prologue and epilogue presenting Hammurabi as a divinely appointed, just ruler.
The physical stele itself has a genuinely dramatic modern history. French archaeologists excavating at Susa, in what is now southwestern Iran, discovered it in three broken pieces in December 1901 and January 1902 — not in Babylon, where Hammurabi had originally erected it, but far from home, because Elamite raiders had carried it off as war plunder roughly 600 years after it was first inscribed, during a twelfth-century BCE campaign against Babylon. The nearly eight-foot black diorite stele was reassembled and has been on public display at the Louvre in Paris ever since, making it one of the relatively few ancient Near Eastern legal artifacts most people could actually recognize on sight. Its prominent, dramatic modern discovery — coming at the height of a wave of European fascination with Mesopotamian archaeology — is part of why Hammurabi’s Code became so much more widely known than the earlier, quieter fragmentary discovery of Ur-Nammu’s code half a century later, even though Ur-Nammu’s code is centuries older.
Example. Provisions range from commercial rules (what a builder owes if a house he built collapses) to family law (inheritance and marriage) to criminal matters (theft and assault) — a genuinely broad legal document, not a narrow one.
Lex Talionis — "An Eye for an Eye"
Properly understood, lex talionis functioned mainly as a limit on retaliation — capping what a wronged party could exact — rather than a license for unlimited revenge. In practice, its application was often stratified by the social status of the parties involved.
Legal historians genuinely debate how often the literal, mirroring version of lex talionis was actually carried out versus functioning mainly as a rhetorical ceiling that real practice quietly worked around through monetary settlement. Surviving cuneiform trial records and contract tablets show a strikingly high proportion of actual physical-injury disputes resolved through negotiated compensation rather than literal physical retaliation, even in cases where the written code’s own text prescribes a mirroring physical penalty. This has led many scholars to read the literal “eye for eye” language less as a description of everyday courtroom practice and more as an outer boundary — a stated maximum the aggrieved party was legally entitled to demand, which real disputants, much like today, often had genuine practical incentives to settle short of. The same basic pattern reappears in the Hebrew Bible’s own version of the principle in the Covenant Code (Exodus 21:23-25), where rabbinic legal tradition later concluded the text was generally intended to be satisfied through monetary compensation rather than literal physical mutilation.
Example. Between two social equals, an injury might be met with a literal, mirroring physical consequence. Between parties of different social status, the Code often substituted a scaled monetary payment instead — proportionality, not simple uniform mirroring, was the real underlying principle.
Legal Procedure in the Ancient Near East
Ancient Near Eastern courts used real procedural tools: oaths sworn before judges, witness testimony, written cuneiform contracts documenting everyday transactions, and — for accusations especially hard to prove — trial by ordeal, such as the river ordeal referenced in Hammurabi’s Code.
The Code of Hammurabi’s own opening provisions describe the river ordeal directly: Law §2 instructs that a person accused of sorcery with no clear proof shall go to the sacred river and be thrown in — if the river “overcomes him,” the accuser takes his house; if the river instead proves him innocent and he comes forth unharmed, the false accuser is put to death instead, and the accused takes the accuser’s house. Sworn oaths, meanwhile, were typically invoked in the name of specific deities associated with justice and truth, most commonly Shamash, the Mesopotamian sun god believed to see everything under the sky and therefore uniquely positioned to know whether an oath was truthful. Surviving cuneiform legal tablets record real, ordinary disputes — over livestock, inheritance, and commercial debts — resolved through exactly this combination of witness testimony and a formal oath sworn before the relevant deity, showing this wasn’t simply a literary device described in a monumental legal text but an actual, everyday feature of how ordinary Mesopotamians settled their disputes.
Example. An accusation of witchcraft, with no clear physical evidence either way, might be resolved by having the accused undergo the river ordeal — their fate in the river treated as a form of divine verdict, a real (if unfamiliar to modern eyes) procedural mechanism for an otherwise unresolvable dispute.
Ancient Mesopotamian Law's Influence & Legacy
The Covenant Code within the Mosaic law tradition shares real structural parallels with Hammurabi’s Code — casuistic provisions on similar subjects — reflecting a broader shared ancient Near Eastern legal culture, without a simple, provable line of direct copying from one to the other. More broadly, the very idea of codification — writing law down systematically — is itself a lasting innovation.
The scholarly relationship between Hammurabi’s Code and the Covenant Code became a genuine public controversy shortly after the stele’s 1901-1902 discovery. In a celebrated 1902 lecture attended by the German Kaiser, the Assyriologist Friedrich Delitzsch argued — in what became known as the “Babel und Bibel” (“Babylon and Bible”) controversy — that biblical law and even core theological ideas were substantially derived from earlier Babylonian sources, a claim that provoked intense public and scholarly backlash across Europe given its implications for the Hebrew Bible’s claimed originality and divine authorship. Later, more careful comparative scholarship walked back Delitzsch’s stronger claims of direct literary borrowing, settling into the more measured, genuinely defensible position this section teaches: both codes drew on a broader shared ancient Near Eastern legal culture and addressed genuinely similar recurring social problems using structurally similar casuistic forms, without requiring — or fully supporting — a claim that one text directly copied from the other.
Example. Both the Covenant Code and Hammurabi’s Code contain casuistic rules addressing an ox that gores someone — a striking structural and thematic parallel, though historians are careful not to overclaim a specific, direct textual borrowing between the two.
Casuistic vs. Apodictic Law
Ancient legal rules generally take one of two structural forms: casuistic (a conditional “if X, then Y” rule addressing a specific scenario) or apodictic (an absolute, unconditional command with no attached condition). Both forms persist, in different mixes, throughout the rest of legal history.
Example. “If a man steals an ox, he shall pay thirty times its value” is casuistic. “You shall not steal” is apodictic — the same underlying concern (theft), expressed in two structurally different ways.
This exact distinction was introduced into modern legal-historical scholarship by the German biblical scholar Albrecht Alt, in his influential 1934 essay Die Ursprünge des israelitischen Rechts (“The Origins of Israelite Law”). Alt observed that ancient Near Eastern legal texts, including the biblical Covenant Code, consistently mix two genuinely distinct grammatical and structural forms — the conditional, case-based casuistic form this section has already covered throughout the module, and a separate apodictic form expressed as flat, unconditional commands, often grouped in short series (“You shall not murder,” “You shall not steal”) with no attached factual scenario at all. Alt further argued the two forms likely had genuinely different social origins — casuistic law drawing on a shared, cosmopolitan ancient Near Eastern legal-judicial tradition common across many cultures, apodictic law reflecting something more distinctively religious and covenantal. Later scholars have qualified parts of Alt’s specific historical argument, but his basic structural vocabulary — casuistic versus apodictic — remains the standard framework this entire field, and this section, still uses today.
Part 2 — See How It Fits Together
Click any box to jump back to that part of the lecture.
Before Written Law
Custom, oral tradition, and elders adjudicating disputes.
2The Code of Ur-Nammu
The earliest known written law, centuries before Hammurabi.
3The Code of Hammurabi
A monumental stele, ~282 casuistic provisions, divine-authority framing.
4Lex Talionis
"An eye for an eye" as a limit on retaliation, not license for it.
5Legal Procedure in the Ancient Near East
Ordeals, oaths, witnesses, and written contracts.
6Legacy & Influence
The Mosaic law parallel, and codification itself as an idea.
7Casuistic vs. Apodictic Law
Conditional case rules vs. absolute unconditional commands.
Click any step to jump straight to that section of the lecture.
Part 3 — Drill the Terms
Flip each card, then rate yourself honestly.
Card 1 of 14
Click the card to flip it.
Part 4 — Apply What You’ve Learned
Now that the material is in place, put it to work.
4.1 — Is This Casuistic Law?
Toggle each element and watch the conclusion update.
The Casuistic Law Checker
The scenario. An ancient code states simply: 'Do not steal,' without describing any particular circumstance, actor, or triggering event — a blanket command applicable in every situation.
Read each element below against the scenario above, then toggle Yes or No for what you think is actually true here.
1. States a Specific Factual Condition
Does the rule begin with (or otherwise state) a specific 'if X happens' factual trigger?
2. Prescribes a Specific Consequence Tied to That Condition
Does the rule prescribe a specific consequence that follows directly from the stated condition?
3. Addresses a Particular Recurring Scenario, Not a Universal Command
Does the rule address one particular kind of recurring factual scenario, rather than stating a general, unconditional command applicable to all situations?
4.2 — Does This Reflect Lex Talionis Reasoning?
Toggle each element and watch the conclusion update.
The Lex Talionis Checker
The scenario. An ancient code provides that if a person kills a member of another family, that family may kill as many members of the offender's family and destroy as much of their property as they see fit, with no limit on the response.
Read each element below against the scenario above, then toggle Yes or No for what you think is actually true here.
1. The Penalty Is Proportionate to the Harm
Is the prescribed penalty roughly proportionate in severity to the harm actually caused, rather than wildly disproportionate?
2. The Penalty Mirrors the Nature of the Harm
Does the penalty resemble or roughly match the specific nature of the harm caused (an injury for an injury, a loss for a loss), rather than an unrelated type of consequence?
3. The Rule Functions to Cap Retaliation, Not Expand It
Does the rule function to limit or cap what the victim's side may do in response, rather than authorizing unlimited retaliation?
4.3 — What Would Change?
A fact-sensitivity sandbox — watch how social tier changes the remedy.
What Would Change? — Hammurabi's Tiered Penalties by Social Status
Under the Code of Hammurabi, the remedy for the same injury often depended heavily on the social tier of the people involved. Move the slider to change the victim's social tier, and toggle whether the offender belonged to that same tier.
Reduced monetary compensation for a lower-tier victim.
When the victim held a lower social tier (such as an enslaved person), the Code generally required only a fraction of what would be owed for an equivalent injury to a free person — a stark illustration of how the Code's justice was explicitly stratified by social status, unlike the formal legal equality modern systems aim for as a baseline principle. This isn't presented to endorse that stratified treatment — it's a real, well-documented feature worth understanding precisely because of how sharply it contrasts with the equal-treatment principle modern legal systems build around.
4.4 — You’re the Historian: The Collapsed House
A branching case scenario — pick your path through the analysis.
The Collapsed House
Archaeologists uncover a cuneiform tablet recording a real dispute from ancient Babylon: a builder constructed a house that later collapsed, killing the homeowner's son. The homeowner brought a claim before the local judges, and the tablet records their ruling — citing the law associated with the reign of Hammurabi, that if a builder's house collapses and kills the homeowner's son, the builder's own son is to be put to death. The tablet also records that before judgment, the builder swore an oath before witnesses about how the house was built.
4.5 — Argue It, Then Argue Against It
You don’t really understand a source until you can question it too.
Was the Code of Hammurabi Genuinely Applied Law, or Primarily Royal Propaganda?
Historians genuinely debate how mechanically the Code of Hammurabi's specific provisions were actually applied in ordinary courts, versus how much the famous stele functioned as royal ideology.
Step 1 — pick the strongest argument that it was primarily propaganda/ideology.
4.6 — Historian’s Case File
A reconstructed account in plain English — which concepts from this module are actually reflected in it?
Historian's Case File
Which of these historical/legal concepts from this module are plausibly reflected here? Select all that apply, then check your answer.
4.7 — Write It Out
Put the whole module together in one answer, then self-audit against a model answer.
Write It Out
A newly translated cuneiform tablet records a dispute in ancient Babylon: a wine merchant is accused by a business partner of secretly diluting wine sold under a sealed agreement. The tablet quotes a rule: 'If a wine merchant dilutes wine sold under a sealed agreement and this is discovered, he shall pay double the contract price to the buyer — and if the buyer is a noble, he shall pay triple.' The tablet also records that the merchant swore an oath denying the accusation before the town's judges, and that witnesses were called to testify about the wine's actual quality. Analyze this account using the structural and procedural concepts covered in this module.

Where It Counts
The Graded Assessment
Everything above was practice. This is the one part of the module that produces a real score — pass it, and you’re a step closer to this course’s Certificate of Completion.
10 questions drawn from a larger pool. You need 75/100 to pass, and you can retake this as many times as you want.
This course teaches legal history using original hypothetical illustrations alongside well-documented historical material. It does not provide legal advice about any specific situation and does not create an attorney-client relationship. For advice about your own circumstances, consult a licensed attorney.
Teaching? Share this with your class
Free to use in class. The free parts open for everyone, no account needed.
