Skip to main content

Secondary sourceDocumentc. 2112-2095 BCE

Code of Ur-Nammu

Ur-Nammu · c. 2112-2095 BCE

The oldest known law code, a Sumerian text that provided the legal tradition Hammurabi later built on and claimed to perfect.

This earlier Sumerian law code shows the legal tradition that Hammurabi's own code drew on and built upon.

Photo of a reddish-brown terra cotta clay tablet, broken into two pieces and stacked, covered with cuneiform script. Behind it is a display card reading 'UR-NAMMU YASASI, UR-NAMMU LAW-CODE', Nippur, Neo-Sumerian period, 2112-2095 B.C.
Code of Ur-Nammu, Neo-Sumerian period, c. 2112-2095 BCE. Istanbul Archaeology Museums.

About this source

What it is

The Code of Ur-Nammu is the oldest known surviving law code, written on clay tablets in the Sumerian language and attributed to King Ur-Nammu of Ur, who ruled centuries before Hammurabi. Fragments are held in museums including the Istanbul Archaeology Museums, the Iraq Museum, and the British Museum.

Why it matters

This code set the pattern that later Mesopotamian law followed, including the

This document is part of the curated material that grounds the AI version of Hammurabi on Humy.ai — when students ask about related events, the AI can quote it and cite it.

Ready when you are

Start chatting with Hammurabi now.

20 messages free · No credit card · Available in 50+ languages.