Ancient Worldc. 2100 BC

Code of Ur-Nammu: The Oldest Surviving Law Code in History

The Code of Ur-Nammu, written in Sumerian c. 2100-2050 BC, is the oldest known law code. Who issued it, what its laws said and how it compares with Hammurabi.

Front and back of the fragmentary limestone Stele of Ur-Nammu from Ur, carved with reliefs of the king before the gods and building work
Front and back of the fragmentary limestone Stele of Ur-Nammu from Ur, carved with reliefs of the king before the gods and building work. Image: Onceinawhile (CC BY-SA 4.0), Wikimedia Commons
Contents

The Code of Ur-Nammu is the oldest surviving law code in history, written in the Sumerian language around 2100–2050 BC under the Third Dynasty of Ur in southern Mesopotamia. Attributed to King Ur-Nammu, though possibly issued by his son Shulgi, it opens with a prologue praising the king’s justice and lists laws in the form “if a man does X, he shall pay Y”. Its reliance on fines rather than physical retaliation sets it apart from the more famous Code of Hammurabi, written about three centuries later.

Ur-Nammu and the Third Dynasty of Ur

Ur-Nammu founded the Third Dynasty of Ur around 2112 BC in the middle chronology. After the fall of the Akkadian Empire and a period of Gutian dominance and independent city-states, he reunited the cities of Sumer and Akkad under the rule of Ur. He reigned for about 18 years, until c. 2095 BC.

His reign was marked by ambitious public works, including the Ziggurat of Ur, canals and city walls. His son Shulgi, who ruled for some 48 years, built on this foundation and created one of the most centralised and bureaucratic states of the ancient world, with standard calendars, weights and administrative records.

A written collection of laws fitted this programme of order and standardisation. It presented the king as the guardian of justice appointed by the gods, especially Nanna, the moon god of Ur, and Utu (Shamash), the sun god of justice.

Discovery of the code

No original monument bearing the code has been found. It is known only from later copies on clay tablets made by scribes, probably in the early second millennium BC.

The first was identified in 1952 by the American Assyriologist Samuel Noah Kramer, who recognised the text on a tablet from Nippur held in the Istanbul Archaeology Museums, catalogued as Ni 3191. The tablet had been excavated by the University of Pennsylvania’s expedition to Nippur at the end of the 19th century. It was badly damaged, but enough survived to show the prologue and several laws.

In 1965 Oliver Gurney and Kramer published two more fragments from Ur, held in the British Museum, which restored more of the laws. Later identifications of further fragments added more detail, though the text still has gaps.

The prologue

Like later Mesopotamian law collections, the code begins with a prologue. It describes how the gods chose Ur-Nammu to rule and lists his achievements. He is said to have defeated Namhani, the ruler of Lagash, restored trade by sea with Magan (probably modern Oman), and freed certain cities from oppression.

The prologue also emphasises economic justice. Ur-Nammu claims to have standardised measures of capacity and weight, including the sila, a dry measure, and the mina, a weight of silver. In a famous passage, he declares that he did not abandon the orphan to the rich, the widow to the powerful, or the poor man to the wealthy. These ideals of protecting the weak echo the earlier reforms of Urukagina in Lagash and recur in the Code of Hammurabi.

What the laws said

The laws are written in a “casuistic” style: each describes a specific case and its consequence, beginning “If a man…”. This format became the standard for Near Eastern law collections, including Hammurabi’s laws and parts of the Hebrew Bible.

The most serious crimes carried the death penalty. Murder, robbery and the rape of a betrothed young woman were punishable by death. A married woman who willingly committed adultery could also be executed, while the man involved was released, a reflection of the unequal treatment of women in Mesopotamian law.

Other laws dealt with marriage and divorce, slaves, false accusations, farming and property. A man accused of sorcery could be sent to undergo the river ordeal, a test in which the accused was plunged into a river and judged innocent if he survived. Fines for false testimony and for damaging another person’s field are also recorded.

Fines instead of retaliation

The most discussed feature of the code is its treatment of bodily injury. Instead of punishing the offender with the same injury, it sets fixed payments in silver. In Martha Roth’s widely used translation, cutting off another man’s foot cost 10 shekels of silver, while knocking out a tooth cost 2 shekels; more serious injuries, such as breaking a bone or cutting off a nose, carried larger fines of up to a mina of silver (one mina equalled 60 shekels).

This contrasts with the Code of Hammurabi, written around 1754 BC, which applied the principle of retaliation, known by its Latin name lex talionis, to injuries between free men of equal status: an eye for an eye, a bone for a bone. Older historians sometimes saw this as evidence that Sumerian law was more “humane” than Babylonian law.

Modern scholars are more cautious. The two codes come from different societies and periods, and neither was a complete legal system applied mechanically by courts. Records of actual trials from the Ur III period show judges hearing witnesses, taking oaths and settling disputes in ways the law collections do not fully describe.

Was it really a law code?

Historians debate what Mesopotamian “codes” were for. They were not comprehensive statute books, and court records rarely cite them. Many scholars see them as royal statements of ideal justice, examples of good judgements, and texts used to train scribes, as well as expressions of legal tradition.

The Code of Ur-Nammu also raises a question of authorship. Its prologue names Ur-Nammu, but because the copies were made long afterwards and Shulgi carried out many of the dynasty’s reforms, some Assyriologists attribute the code to Shulgi. The debate is unresolved, which is why the date is usually given as a range of about 2100–2050 BC.

Legacy in later law

The Code of Ur-Nammu was not forgotten after the fall of Ur. Scribes in Babylonian schools continued to copy Sumerian legal texts, and later law collections followed the same structure of prologue, laws and epilogue. The Laws of Lipit-Ishtar of Isin, written in Sumerian around 1930 BC, and the Laws of Eshnunna, written in Akkadian a little later, show clear continuity with Ur-Nammu’s work.

Hammurabi’s code, the most complete of these collections, inherited the casuistic form, the concern for the weak and many specific subjects, from marriage to the hire of boats and oxen. In this sense the Code of Ur-Nammu stands at the head of a tradition of written law that lasted for well over a thousand years in the ancient Near East.

For modern readers, the code is a reminder that written justice did not begin with Hammurabi, and that many of the questions it addresses, such as compensation for injury and the protection of the vulnerable, remain central to law today.

Timeline

  • c. 2112 BC: Ur-Nammu founds the Third Dynasty of Ur.
  • c. 2100–2050 BC: The law code is issued under Ur-Nammu or Shulgi.
  • c. 2094–2047 BC: Reign of Shulgi.
  • c. 2004 BC: Ur is sacked by the Elamites, ending the dynasty.
  • c. 1754 BC: Hammurabi of Babylon issues his law code.
  • 1889–1900: The University of Pennsylvania excavates at Nippur; tablet Ni 3191 goes to Istanbul.
  • 1952: Samuel Noah Kramer identifies the Code of Ur-Nammu.
  • 1965: Gurney and Kramer publish further fragments from Ur.

Why it matters

The Code of Ur-Nammu shows that the idea of written law, issued by a ruler and binding on his subjects, existed in Sumer by around 2100 BC. Its prologue’s concern for the widow, the orphan and the poor, and its system of fixed compensation, made it the starting point of a legal tradition that runs through Hammurabi to the law of the ancient Near East and beyond.

Frequently asked questions

What is the Code of Ur-Nammu?

It is a collection of laws written in Sumerian under the Third Dynasty of Ur, around 2100–2050 BC. It is the oldest law code that survives, about three centuries older than the Code of Hammurabi.

Did Ur-Nammu or Shulgi write the code?

The prologue names Ur-Nammu, founder of the dynasty, and the code is traditionally attributed to him. Some scholars argue that his son Shulgi issued it, because the surviving copies are later and the attribution is not entirely certain.

What punishments did the Code of Ur-Nammu use?

Murder, robbery and some sexual offences were punished by death. Many other offences, especially bodily injuries, were punished by fixed payments of silver, unlike the eye-for-an-eye principle found in parts of the later Code of Hammurabi.

Where is the Code of Ur-Nammu kept?

The main tablet, catalogued as Ni 3191, is in the Istanbul Archaeology Museums. It came from Nippur and was identified by Samuel Noah Kramer in 1952. Further fragments from Ur are in the British Museum.

How many laws are in the Code of Ur-Nammu?

The tablets are damaged, so the full number is unknown. Around 40 laws can be read in whole or part, together with a prologue describing the king's reforms.

Is the Code of Ur-Nammu older than the Ten Commandments?

Yes. It dates from around 2100–2050 BC, more than a thousand years before the biblical texts were written down in their present form.

Sources and further reading

  • Roth, Martha T., Law Collections from Mesopotamia and Asia Minor (2nd edition, 1997)
  • Kramer, Samuel Noah, The Sumerians: Their History, Culture, and Character (1963)
  • Kramer, Samuel Noah, History Begins at Sumer (1956)
  • Encyclopaedia Britannica, "Ur-Nammu"

Cite this article

“Code of Ur-Nammu: The Oldest Surviving Law Code in History.” Chronicle, https://chronicle.bigworldlist.com/articles/code-of-ur-nammu/.