The Code of Hammurabi vs the Ten Commandments

The Code of Hammurabi is centuries older than the Ten Commandments. What the two laws share, where they part ways, and whether Moses borrowed from Babylon.
Two laws written in stone
Moses himself invites the comparison. Before he repeats the Ten Commandments in Deuteronomy, he asks Israel to measure its law against the laws of the nations around it:
What great nation is there that has statutes and ordinances so righteous as all this law which I set before you today?
Deuteronomy 4:8
The best-known of those other laws stands today in the Louvre in Paris. The Code of Hammurabi is carved on a black basalt stele a little over two meters tall. At the top, King Hammurabi of Babylon stands before Shamash, the god of justice. Below run a prologue, about 280 laws (scholars number them 1 to 282) and an epilogue in Akkadian cuneiform. French archaeologists found it at Susa, in today’s Iran, in 1901–1902.
So which came first? Hammurabi ruled Babylon from about 1792 to 1750 BC, and the stele dates from late in his reign. The Bible gives no year for Moses. Counting back from Solomon (1 Kings 6:1) gives the fifteenth century BC; many historians prefer the thirteenth, and critical scholars date the written laws later still. On any of these dates, Hammurabi’s code is older by centuries. The three ways of dating Sinai are compared in When Were the Ten Commandments Given?
It was not the first, either. The laws of Ur-Nammu (around 2100 BC), Lipit-Ishtar and the city of Eshnunna came before it. Israel’s ancestors came out of that world: Abraham’s family set out “from Ur of the Chaldees” (Genesis 11:31). A fair comparison also takes in the laws that follow the ten in Exodus 21–23, usually called the Book of the Covenant (after Exodus 24:7). See What Is Exodus 20? and The Ten Commandments: What Each One Means.
What the two laws have in common
Side by side, the two share a great deal, and it is better to say so. Both punish murder, theft, adultery and lying in court; Hammurabi’s first laws condemn a false accuser and a false witness in a capital case. Both protect parents: Hammurabi’s law 195 cuts off the hand of a son who strikes his father, and Exodus says “Anyone who attacks his father or his mother shall be surely put to death” (21:15). Both make kidnapping a capital crime (Hammurabi 14; Exodus 21:16).
The best-known parallel is equal penalty: under Hammurabi’s laws 196–197, a man who blinds another is blinded, and one who breaks another’s bone has his bone broken. Exodus has:
But if any harm follows, then you must take life for life, eye for eye, tooth for tooth, hand for hand, foot for foot, burning for burning, wound for wound, and bruise for bruise.
Exodus 21:23–25
In both, the point is proportion, a limit on revenge rather than a license for it (see You Have Heard It Said: What Jesus Meant).
Some cases are close enough to suggest one legal tradition. Hammurabi’s laws 250–251 and Exodus 21:28–29 both deal with an ox that gores a man when its owner knew “the bull had a habit of goring.” The older laws of Eshnunna (law 53) say that when one ox kills another, the owners divide the price of the live ox and the carcass; Exodus 21:35 says almost the same: “they shall sell the live bull, and divide its price.” Hammurabi lets a family member sold for debt go free after three years (law 117); Exodus sets six: “in the seventh he shall go out free without paying anything” (21:2).
Both also claim to protect the weak. Hammurabi says the gods chose him so that the strong would not oppress the weak; Exodus says, “You shall not take advantage of any widow or fatherless child” (22:22).
Where they part ways
The differences are just as real.
One law, or three classes
Hammurabi’s penalties depend on who you are. Blind a free man and you lose your eye; blind a commoner and you pay a mina of silver; blind someone’s slave and you pay the owner half the slave’s price (laws 196–199). Exodus also has slaves, but when a master blinds his own slave, the slave is the one compensated: “he shall let him go free for his eye’s sake” (21:26). Leviticus states the rule: “You shall have one kind of law for the foreigner as well as the native-born” (24:22).
People before property
In Hammurabi, theft can be a capital crime: stealing from a temple or the palace (law 6), robbery (law 22), or a theft the thief cannot repay (law 8). In the law of Moses, no crime against property alone carries death. A thief repays, double or more: “he shall pay five oxen for an ox, and four sheep for a sheep” (22:1). Death is kept for crimes against persons. The Jewish scholar Moshe Greenberg made this his central point in 1960: in biblical law, life and property are not on one scale.
No child dies for a father
If a house collapses and kills the owner’s son, Hammurabi’s law 230 puts the builder’s son to death. If a man causes the death of a pregnant woman of the upper class, his daughter is killed (law 210). The law of Moses forbids it:
The fathers shall not be put to death for the children, neither shall the children be put to death for the fathers. Every man shall be put to death for his own sin.
Deuteronomy 24:16
See Does God Punish Children for Parents’ Sins?
Escaped slaves
Under Hammurabi, helping a slave escape or hiding a runaway is punished by death (laws 15–16). Deuteronomy says the opposite: “You shall not deliver to his master a servant who has escaped from his master to you” (23:15).
What only the Ten Commandments do
Some things in the Ten Commandments have no counterpart on the stele.
Who speaks. Hammurabi presents the laws as his own just decisions, as a king chosen by the gods, and curses any later king who changes them. In Exodus, “God spoke all these words” (20:1) to the whole people, and the king is placed under the law: he must copy it and read it daily, “that his heart not be lifted up above his brothers” (Deuteronomy 17:20).
How it is said. Hammurabi’s laws are cases: “if a man does this, then that.” The Ten Commandments are mostly flat commands with no penalty attached: “You shall not murder.” In 1934 the German scholar Albrecht Alt named the two forms casuistic and apodictic. He thought the second was Israel’s own; such commands do occur elsewhere, but no known code is built on them.
God, rest and the heart. The stele has no law about worshiping one God, no ban on images, nothing about God’s name and no weekly day of rest. The Sabbath is kept “that your male servant and your female servant may rest as well as you” (Deuteronomy 5:14), because Israel had been slaves (5:15). And the list ends where no court can follow: “You shall not covet your neighbor’s house” (20:17). A court can punish theft; only God sees the wanting that comes first (see What Does ‘You Shall Not Covet’ Mean?).
And they open with a rescue, not a royal title: “I am the LORD your God, who brought you out of the land of Egypt” (20:2). Hammurabi wrote for a kingdom he ruled; the commandments speak to people just set free (see Why Did God Give the Ten Commandments?).
Did Moses copy Hammurabi?
When the stele was published in 1902, some concluded that the Bible had simply borrowed from Babylon. That year the Assyriologist Friedrich Delitzsch began his “Babel and Bible” lectures in Berlin, and a long argument began.
Today there are three main views. Some scholars, such as David P. Wright in Inventing God’s Law (2009), argue that the writers of Exodus 21–23 knew Hammurabi’s text and reworked it. Many more see a shared tradition: scribes across the region copied the same kinds of cases for centuries. And many Jewish and Christian readers add that a shared legal language says nothing against revelation: God spoke to Israel in forms its neighbors knew, and changed them from inside.
Two points hold on every view. First, the closest parallels are in the case laws of Exodus 21–23, not in the Ten Commandments themselves. Second, the Bible does not claim that Israel was the only people with a conscience. Paul writes that Gentiles without the law “show the work of the law written in their hearts” (Romans 2:15). Catholic teaching calls the commandments a privileged expression of the natural law (Catechism 2070), and Calvin wrote that the law written on every conscience says much the same as the two tables (Institutes 2.8.1).
So the overlap is not an embarrassment. It is what you would expect if the commandments describe what human beings are. Deuteronomy’s question is not whether anyone else had laws, but whose were “so righteous.” For how the commandments relate to the rest of the law of Moses, see How Many Commandments Are in the Bible? The question of shared moral ground also comes up with a later scripture: see Are the Ten Commandments in the Quran?
Questions people ask about Hammurabi and the commandments
Which is older, the Code of Hammurabi or the Ten Commandments?
The Code of Hammurabi, from about 1750 BC. The usual dates for Moses are the fifteenth or thirteenth century BC, so the stele is older by roughly three to five centuries, and Ur-Nammu’s laws are older still.
Are the Ten Commandments based on Hammurabi’s code?
Not directly. One God, no idols, God’s name, the Sabbath and coveting have no parallel in it. The overlap is with the case laws of Exodus 21–23, and scholars still debate whether it comes from borrowing or a shared tradition.
Does the Code of Hammurabi contain the Ten Commandments?
No. It punishes several of the same acts, such as murder, theft, adultery and false accusation, but as cases with penalties, and has nothing on worship, rest or coveting. Read the whole list in The Ten Commandments in Order.
Is Hammurabi mentioned in the Bible?
Not by name. Around 1900 some scholars identified him with “Amraphel, king of Shinar” in Genesis 14:1, but the names and dates fit poorly, and most historians have dropped the idea.
Where is the Code of Hammurabi today?
In the Louvre in Paris. An Elamite king carried it off to Susa as plunder in the twelfth century BC, where French archaeologists found it. Lines scraped off the stone are known from clay copies, because scribes copied the laws for over a thousand years.
Keep reading
All articles →- The Ten Commandments for Married CouplesNo separate commandments exist for married couples: all ten apply at home. What they ask of husbands and wives, from faithfulness and rest to money and truth.
- How Long Was Moses on Mount Sinai?Moses spent forty days and forty nights on Mount Sinai, twice, and Jewish tradition counts a third. What happened each time, and how many times he went up.
- What Were the Ten Commandments Written On?On two stone tablets, written with God’s finger on both sides. What kind of stone, the sapphire tradition, why there were two, and where the tablets went.
- The Ten Commandments for Kids (Simple Explanations + Printable)The Ten Commandments for kids in words they understand, with a free printable PDF, a five-finger way to remember them, and questions to talk about by age.