Ancient Law Before Justice
World Civ. | The ways in which law was applied, and the perception of justice
Every civilization that has ever existed has needed to answer the same question: who rules, and why should anyone obey?
The Mesopotamians answered it in stone. Sargon of Akkad — risen, according to legend, from the basket of a high priestess’s secret shame, fished from a river by a water-drawer, and carried upward by nothing but will and conquest — became the first empire-builder in recorded history around 2334 BC.
His story is one of those foundational myths (perhaps not a myth) that civilizations return to, not because they are necessarily true, but because they are necessary. The humble origins, the obscure birth, the rise through cunning rather than blood — these details insist that power can be earned. They also insist, more quietly, that once earned, power is absolute.
Sargon understood something that every subsequent ruler in the region would rediscover: conquest alone does not make an empire. What makes an empire is the ability to make conquest feel like order. He built statues and stelae throughout his realm, not to decorate it but to unify it — to give disparate peoples a common visual vocabulary of authority.
The capital city, Akkad, became a cosmopolitan center, a node in trade routes extending as far as India. We have never found Akkad. Archaeologists have estimated its location, north of the old Sumerian city-states, and left it at that. The most powerful city in the ancient world sits somewhere beneath our feet, and we cannot say exactly where. There is something in that — the way the empire insists on its own permanence, and the way time answers. The Akkadian Empire lasted roughly two hundred years before attacks from neighboring peoples brought it down.
Hammurabi arrived in 1792 BC to begin the whole project again.
Hammurabi is most famous for the law code etched into a stele that bears his name — 282 laws carved into black basalt, the upper portion depicting Hammurabi standing before the Babylonian god of justice, from whom Hammurabi derives his power and legitimacy. The image is worth dwelling on. The god is seated — the king stands. Between them, the instruments of justice pass from divine hand to mortal.
This is not merely religious iconography. It is a political argument rendered permanent in stone: the king’s laws are not the king’s laws. They are heaven’s laws, administered through the king’s hands. Disobey Hammurabi, and you disobey Shamash. The logic is elegant and, for most of recorded history, nearly irresistible.
The Code attempted to unify people within the empire and establish common standards for acceptable behavior. Common standards — but not equal ones. The stratification built into the Code was not incidental to its purpose. It was the purpose.
Law 198 specifies that if a man puts out the eye of a freed man, he shall pay one gold mina.
Law 199 specifies that if he puts out the eye of a man’s slave, he shall pay one-half of the slave’s value. The same eye. Different law.
The principle of “an eye for an eye” applied between equals, and equality was a condition that the Code itself determined. The stele did not promise justice in the abstract. It promised legibility — a clear, public accounting of who was worth what, and what could be taken from whom.
This is civilization’s oldest and most persistent trick: to present a system of stratification as a system of justice, and to carve the distinction in stone so that it outlasts the men who drew it.
What the Assyrians contributed to this tradition was the same principle pursued to its most undisguised extreme. Where Hammurabi encoded hierarchy in law, the Assyrians encoded it in terror. Their army — perhaps 150,000 soldiers strong, equipped with iron weapons sharper than anything their predecessors had carried — moved through Mesopotamia, Syria, Anatolia, Palestine, and up the Nile into Egypt.
They used siege warfare, battering rams, tunnels, and movable towers. They decapitated conquered kings, burnt cities to the ground, destroyed crops, and dismembered defeated enemy soldiers. One Assyrian soldier’s account survives: he describes gouging out the eyes of many troops, making one pile of the living and one of the heads, and hanging those heads on trees around the city.
The Assyrians expected these methods to deter potential rebellions. This was not savagery as an accident. It was savagery as policy — a calculated communication strategy directed at every city that had not yet been conquered.
The message was simple: compliance is cheaper than defiance. That the Assyrian Empire eventually became too large to control, its military overextended, its rebellions too frequent to suppress, suggests that the message had a shelf life. Fear, as the Legalists of ancient China would also discover, is an excellent foundation for an empire and a poor one for a civilization.
The Assyrian Empire fell in 612 BC, when Nineveh was conquered. The New Babylonian Empire rose from the wreckage, and Nebuchadnezzar II — described in the Hebrew Scriptures as a ruthless leader — destroyed Jerusalem, deported its Jewish population to Babylon, and then rebuilt his own capital into one of the wonders of the ancient world.
He raised the ziggurat Etemenanki — the Temple of the Foundation of Heaven and Earth — several stories above the city, reaching toward the heavens, which some scholars identify as the Tower of Babel of the Old Testament. He reportedly built the Hanging Gardens for his wife, making the desert bloom to remind her of a homeland she could not return to. No definitive archaeological evidence of the Gardens has ever been found. The most beautiful thing Nebuchadnezzar may have built exists only in the testimony of those who claimed to have seen it.
The Israelites arrived in this same landscape as something categorically different — not as empire-builders, but as covenant-keepers.
Hebrew tradition begins with Abraham’s departure from Ur in southern Mesopotamia, his rejection of idol worship, and his covenant with a god who promised to make his descendants a great nation. The covenant relationship between Yahweh and the Israelites was not a transaction between a ruler and subjects. It was a mutual obligation between a god and a people, ratified at Sinai, codified in the Ten Commandments, and carried forward through a tradition of scripture and prophecy that would eventually become the foundational text of three world religions.
The Hebrew Scriptures contained an idea that the Mesopotamian empires, for all their administrative sophistication, never quite articulated: that everyone, regardless of status, was bound to obey the law. Not everyone is equally protected by the law — the Hebrew Scriptures contain their own hierarchies and their own violences — but everyone is equally subject to divine command.
Yahweh’s law did not exempt the king. This was a revolutionary claim. Hammurabi derived his authority from Shamash and exercised it downward. The God of the Hebrew Scriptures bound king and commoner alike. The covenant ran in both directions.
King David, remembered for defeating Goliath and establishing Jerusalem as the capital of a unified Israel, maintained a large standing army and extended his influence through neighboring tributary states. He was a warrior king and a poet — credited with composing many of the hymns and prayers in the Book of Psalms. His son Solomon built the first Jewish temple in Jerusalem, forged diplomatic relations through marriage to seven hundred wives, and set up twelve administrative districts to sustain a court that had become, by the standards of the ancient Near East, a genuinely cosmopolitan institution. After Solomon’s death, what had been the United Kingdom of Israel split into two kingdoms — Israel and Judah — and began the long decline that would eventually deliver both into foreign hands.
The Assyrians came. Then the Greeks. Then the Romans. The conquests and persecutions scattered the Jewish population into a diaspora — a people without a homeland who carried their homeland inside a text.
That the Hebrew Scriptures survived when the empires that tried to destroy their authors did not is itself a kind of historical argument. Stone and iron built Babylon. Hammurabi’s stele stands in the Louvre. The Hanging Gardens may never have existed at all. But the words at Sinai are still read aloud, every week, in every corner of the world where Jews gather.
What the ancient Middle East teaches, taken whole, is that civilization has always been simultaneously a moral claim and a power arrangement, and that the two are almost never the same thing.
Sargon built an empire from a basket on a river. Hammurabi carved justice into stone and called the stone divine. The Assyrians made piles of heads and called it order. Nebuchadnezzar built a garden in the desert and called it love. And from within all of this — from within the very Mesopotamia that made empire possible — a small people made a different argument: that the law is not the king’s, that the covenant belongs to everyone, and that history is not only what the powerful inscribe on their monuments.
We are still sorting out which claim is true. We have been sorting it out for four thousand years, and we have not finished.
Long before the courtroom, the Constitution, or the Bill of Rights, there was the stele: a column of black basalt eight feet tall, carved with 282 laws and the image of a king receiving divine authority from the sun god Shamash. Hammurabi’s Code, set down in ancient Babylon around 1754 BC, is the oldest known codification of law in recorded history — older than Mosaic law, older than the Greek city-state, older than the Roman republic by well over a millennium. It governed theft, marriage, debt, assault, and commerce. It sorted its punishments by class and by gender. It placed divine sanction behind every clause.
We tend to think of ancient law as primitive. We should think of it as a mirror.
What the Code reveals is not merely a legal system but a theory of civilization: that the power to name a crime is also the power to define a community. Every law drawn in cuneiform carried two messages simultaneously — here is what is forbidden, and here is who belongs to what order. The Babylonians did not separate those two messages. Neither, if we are candid about it, have we.
The significance of Hammurabi’s Code begins not with its content but with its medium. Cuneiform — that wedge-pressed script pressed into wet clay, refined from the cruder pictographs that preceded it — made something possible that earlier civilizations could only approximate: the efficient, scalable transmission of authority over large populations. When the law is spoken, it bends with the mouth that speaks it.
When it is written, it hardens. It becomes a thing apart from the individual, capable of outlasting any particular king, any particular controversy, any particular century. The transition from pictographs and hieroglyphics to cuneiform, with its potential to spread bureaucracy and literacy, enabled governmental regulation and authority over an increasingly literate public.
Hammurabi understood this. The stele was not posted in the palace — it was erected in the temple of Marduk, in Babylon’s center, where any citizen might read it. The law was public precisely because publicity was the point.
That publicity carried a moral claim. If you can read the law, you are responsible to it. If you are responsible to it, the state has a legitimate basis for enforcement. And if the state has a legitimate basis for enforcement, then the king’s authority is not merely coercive — it is rational, divine, and just. The Code begins with a prologue in which Hammurabi presents himself as chosen by the gods to bring righteousness to the land.
The stele’s carved image says the same thing in stone: Shamash, seated and radiant, extending the instruments of justice to the king who kneels before him. This was not decorative theology. It was political architecture. By investing their secular ruler with divine sanction, the Babylonians resolved in one stroke a problem that every civilization has struggled with: why should anyone obey?
But obedience to whom, and on what terms?
The Code’s most consequential feature is not any single law but its underlying structure of stratification. Punishment was not equal. It was calibrated — and calibrated with ruthless consistency — to reflect the social position of both victim and perpetrator.
The eighth law of the Code states that if anyone steals cattle or sheep belonging to a god or to the court, the thief shall pay thirtyfold. If they belonged to a freedman of the king, tenfold. If the thief has nothing with which to pay, he shall be put to death.
The math here is not accidental. Property belonging to the divine and the royal is worth three times as much as property belonging to a freed man, and a freed man’s property is worth infinitely more than a poor man’s life. This is not a flaw in the Code’s logic. It is the Code’s logic.
The architecture of social order masquerading as moral principle? Perhaps, and it was masquerading in ancient Babylon long before it masqueraded anywhere else.
Women appear throughout the Code, and their appearance tells us something essential about how patriarchal authority was not merely practiced but codified, enforced, and in a peculiar sense, publicly acknowledged as requiring enforcement.
The 117th law states that if anyone fails to meet a claim for debt, he may sell himself, his wife, his son, and daughter for money or give them away to forced labor, where they shall work for three years in the house of the man who bought them before being set free in the fourth year.
The wife and children appear here not as persons with claims of their own but as assets — transferable, mortgageable, legally fungible. The father’s debt becomes their servitude. His failure becomes their years.
And yet the Code also restricts this power. There are laws protecting women’s dowries, governing the terms of divorce, and establishing conditions under which a wife cannot simply be discarded.
Read in isolation, these might look like protections.
Read in context, they reveal something more unsettling: all of these protections discuss women in terms of chattel, similar to slaves — not as people whose rights require recognition, but as property whose value requires regulation.
The law acknowledged that men might abuse their dominance over women. Its solution was not to diminish that dominance but to manage it. Women deserved protection the way livestock deserved protection — because exploitation without limit eventually destroys the asset.
This is not an observation unique to Babylon. It is an observation about civilization.
What the evolutionary psychologist Gad Saad argues, drawing on Hammurabi’s Code in The Evolutionary Basis of Consumption, is that many of these laws are not arbitrary expressions of Babylonian prejudice but codifications of deep biological imperatives — specifically, those organized around paternity certainty and reproductive access.
Code 129, which makes cuckoldry a capital offense, is a form of protection against paternity uncertainty.
Code 135, which stipulates that a man taken prisoner in war should not have to invest in offspring that are clearly not his own upon his return, explicitly reflects that Darwinian logic.
Code 128, which holds that a woman with whom a man has had no intercourse is no wife to him, recognizes that the reproductive act defines a human mating pair’s Darwinian fitness.
Saad’s view is bracing and deliberately unsentimental. The laws of Hammurabi, on this account, are not the creations of theology or philosophy — they are the creations of biology, dressed in the garments of theology and philosophy. They recur across cultures, across centuries, across legal traditions, precisely because they respond to pressures that human beings everywhere and always face.
Similar codes exist in countless societies and religions: in Judaism, religion passes through the mother because one can never be certain who the father is.
In France’s nineteenth century and in Brazil, crime passionnel was an accepted legal defense when a man caught his wife in the act — because the evolutionary logic behind the rage was considered, in some courts, a mitigating factor.
The Babylonian lawyer and the evolutionary psychologist, separated by four thousand years, are making the same argument about human nature. Whether that argument should comfort or disturb us is another question entirely.
The philosophies that emerged millennia later in China approached the same problem — how to govern human nature, how to make social order possible — but from a different angle, and with different conclusions.
Confucius, born in 551 BC in the state of Lu, spent much of his life seeking a prince willing to put his ideas into practice. He never quite found one. What he left behind was the Analects and a theory of government premised not on law as coercion but on law as moral cultivation.
He encouraged proper behavior according to the Dao, or “Way,” assuming that all human beings had their own Dao based on their role in life. From this arose two governing concepts: duty — the responsibility of all individuals to their family and community — and humanity, a sense of compassion and empathy for others.
A Confucian government did not threaten its subjects into compliance. It inspired them, through the example of virtuous leadership, into rightness. The ruler who governed well was the ruler who governed least visibly.
Daoism pushed this logic further, past Confucius and into stillness. Where Confucian doctrine asserts that it is the duty of every human to work toward improvement, Daoism encourages its followers to practice inaction — contending that the true way to interpret the will of Heaven is not action but inaction. Government, from a Daoist perspective, is not the solution to human disorder. It is often its cause.
Against both stood Legalism — the bleakest of the three schools, and in the short term, the most successful. Legalism argued that human beings were by nature evil and would follow the correct path only if forced to do so by harsh laws with stiff penalties, with fear serving as a better motivator than reward. This was Hammurabi’s implicit premise made explicit, stripped of divine sanction, and restated as political science. Human beings left to themselves will not choose virtue. They must be compelled.
It was Legalism that unified China.
Qin Shi Huangdi — a great leader and a ruthless tyrant, driven by an obsession to build the greatest nation on earth — became the First Emperor of China in 221 BC. He ruled over ten times as many subjects as the pharaohs of Egypt, and his empire would outlast Rome by a thousand years. He standardized weights, measures, currency, and the written forms of Chinese characters. He ordered the construction of roads. He divided the empire into provinces governed by officials promoted on merit and dismissed at the emperor’s pleasure. He began the Great Wall.
He also, reportedly, went mad. He was buried in the largest mausoleum on earth, surrounded by the Terracotta Army — thousands of fired clay soldiers standing in formation for an afterlife that would be as orderly as the empire he had beaten into existence. Whether the obsession that built China and the obsession that built that tomb were the same obsession is a question worth sitting with.
The Qin dynasty developed factions and crumbled by 210 BC, not long after the emperor’s death. Legalism, it turned out, could unify a civilization but could not sustain one. The Han dynasty that followed spent its early years trying to reconcile Confucian ethics with Legalist institutions — a system generally known as State Confucianism — and in doing so created one of the most enduring imperial traditions in human history. The Han ruled for four centuries. They opened trade routes to India and the Mediterranean. They gave China its first census. They built the Silk Road.
They, too, eventually fell.
Something in all of this insists on a question that law, in any civilization, rarely answers plainly: can you separate the oppression of law from its capacity to keep order?
Hammurabi’s Code punished theft and also punished poverty. It protected women and also quantified them. It invoked divine justice and also enforced class hierarchy. The Legalists built an empire and exhausted it. Confucius imagined a government of virtue and spent his life without one.
Every legal system in history has had to make this bargain: order in exchange for something. The only variable is what is surrendered, and by whom. The ancient Babylonians surrendered equality — and they were candid about it. Their laws said, in effect, that a slave’s eye is worth less than a free man’s.
The stele of Hammurabi still stands. It is in the Louvre — moved, like so many artifacts of empire, far from the civilization that created it, and studied by people who did not need to obey it. Law, seen from inside, always looks like justice. It is only from the outside — from the position of those the law excludes, or from the distance of four thousand years — that the architecture becomes visible.
Bibliography | Notes
Berger, Eugene, et al. World History: Cultures, States, and Societies to 1500. University System of Georgia, 2016.
OpenStax. World History, Volume 1: To 1500. OpenStax, Rice University, 2018.
Saad, Gad. The Evolutionary Basis of Consumption. Lawrence Erlbaum Associates, 2007. Pages 11–13.
King, L.W., trans. The Code of Hammurabi. 1915.




