Divine justice in Mesopotamia is Shamash's own office — the sun who sees everything the patron of law: the king commissioned "to cause mišaru (justice) to prevail," the edicts of release that freed debtors, the oath and the ordeal administered under the gods. The prologue of Hammurabi's code names Anu and Enlil calling the king to destroy the wicked and protect the weak — justice as the gods' commission, executed in their name.
Domain
Law, equity, and the gods' commission: mišaru and kittu (justice and truth)
First Attested
From the earliest royal edicts (third millennium) through the codes
Primary Texts
The prologue-and-epilogue of the Code of Hammurabi; the misarum edicts; the hymns to Shamash
Related Deities
Shamash (the justice-god, with Aya), the king as executor
Core Themes
The seeing sun: Shamash sees all — the wrong done in secret, the judge's bribe, the orphan's case: the iconography of the sun-god's rays that reach everywhere the law should.
The king's commission: Hammurabi's prologue: Anu and Enlil called him to make justice prevail, that the strong not oppress the weak — the code's epilogue blesses the ruler who heeds it and curses the defacer — the stele itself a legal instrument under divine seal.
The instruments: the misarum "release" edicts (debt-forgiveness decrees at the king's accession and jubilees), the oath by god and king, the river-ordeal — justice administered as liturgy, the court's instruments as much ritual as procedure, the oath sworn by the god's own weapon and the river's water both.
Evidence & Sources
The law codes (Ur-Nammu, Lipit-Ishtar, Eshnunna, Hammurabi), the royal edicts, and the hymns to Shamash document the office; Eshnunna's laws the earlier parallel on this site.