Writing and Law

Ancient Mesopotamian Law: The Oldest Known Code

The Code of Ur-Nammu, from about 2100 BCE, is the oldest surviving law code. Learn how its silver fines worked and how judges and courts handled real cases.

On this page
  1. What the Code of Ur-Nammu is, and what it is not
  2. Structure and content
  3. The fines-based approach
  4. How courts and judges actually worked
  5. Why it still matters

What the Code of Ur-Nammu is, and what it is not

The Code of Ur-Nammu is the oldest surviving collection of laws, written in Sumerian and dated to roughly 2100 BCE. It is traditionally linked to Ur-Nammu, who founded the Third Dynasty of Ur and ruled from the city of Ur around 2100 BCE. Some scholars argue the surviving text was compiled under his son Shulgi, so the attribution is not certain. “Oldest known” also needs a qualification: it is the oldest law code that survives, not the first time anyone wrote about justice. Earlier texts, such as the reforms of Urukagina of Lagash around 2350 BCE, describe rulers curbing abuses, but they are not organised collections of cases.

The text was unknown until the twentieth century. Fragments on tablets from Nippur, held in the Istanbul museums, were identified and published by the Assyriologist Samuel Noah Kramer in 1952. Further copies from Ur and elsewhere have been identified since, which helps fill gaps, though large parts remain lost or damaged.

Structure and content

Like later collections, the code opens with a prologue. It credits the gods, especially Nanna, the moon god and patron deity of Ur, with giving Ur-Nammu kingship, and it lists acts of justice and good order by the king. The laws follow, introduced by “if” clauses stating a case and its consequence. Roughly forty provisions can be read today, though the original was longer.

Subjects include:

  • killing and robbery, for which death is prescribed;
  • bodily injuries, which are mostly settled with payments;
  • marriage, divorce and the status of a wife;
  • the treatment of slaves, including runaways;
  • false accusation, such as an unproved charge of sorcery, and false testimony;
  • damage to a neighbour’s cultivated land.

The fines-based approach

What makes the code notable is that so many penalties are payments in silver. The rules are measured in shekels and minas, with sixty shekels to a mina. Cutting off a foot costs ten shekels in the text as most scholars read it, and breaking a bone costs a full mina. In the case of an accused sorcerer who is cleared by the river ordeal, the accuser pays a small fine. Damaged fields are compensated in barley.

This does not mean the system was gentle. Death was reserved for the gravest offences, and the code assumes a society of slaves and free people, with different consequences for each. It also shows a mindset: injuries are assessed and priced, and the victim or the victim’s household is compensated. Whether the amounts match what people actually paid in practice is unknown, because the code is a royal text, not a court ledger.

How courts and judges actually worked

The code gives only a partial view of justice. Evidence from thousands of administrative and legal tablets of the Ur III period, together with later Old Babylonian material, shows how disputes were really handled.

  • Judges were officials. Cases were typically heard by judges, often several together, who might also be temple officials or local governors. The king was the highest authority but did not hear most cases himself.
  • Written records mattered. Court outcomes, sales, loans and adoptions were recorded on tablets, with the names of witnesses. A person who held a document could use it to prove a claim later.
  • Oaths and ordeals were part of the process. Parties swore oaths in the names of gods and the king, and the river ordeal, mentioned in the code itself, was used when evidence was lacking. How often it was used is unclear.
  • Assemblies could act as courts. A well-known case from Nippur, usually dated to the early second millennium BCE, involves the murder of a man; the city assembly reportedly condemned not only the killers but also his wife, who had known and kept silent, though some members argued otherwise. Like much of the evidence, it comes from a later copy, and its details are debated.

Notably, trial records of the period almost never cite the code by number or by name. Judges seem to have relied on local custom, precedent and their own judgement, with the king’s laws forming one source of authority among several. That is one reason historians hesitate to call it a “code” in the modern sense.

Why it still matters

The Code of Ur-Nammu shows that the idea of written, public rules for settling disputes is older than Babylon, Athens or Rome. It established patterns that later scribes inherited, including the prologue in which a king claims divine support, the casuistic “if… then” format and the use of fixed sums as compensation. These shaped what scholars call the Sumerian legal tradition, and Hammurabi’s much larger text draws on the same literary form. For the later development of Greek and Roman legal thought, including the Twelve Tables, the line of influence is less direct, and the evidence for it is thin.

For comparison, Egypt had no surviving law code of this type, and its justice appears to have run through officials such as the Egyptian vizier. Other ancient legal systems developed along different lines, which is one reason the Mesopotamian material is so valuable: it is a rare case where we can read the king’s own words as well as the records of how people lived with them.

The complete guide to writing and law

Cracking the Code of Ancient Sumerian Writing
Read the guide

Keep exploring

Guides from other topics

All topics →