In the grand, dusty theater of Mesopotamia, where civilization first took its tentative steps, the political landscape of the early second millennium BCE was a chaotic drama of competing city-states. The Fertile Crescent, cradled by the Tigris and Euphrates rivers, was a patchwork of petty kingdoms, each ruled by an ambitious monarch, each vying for control of precious water and lucrative trade routes. Cities like Larsa, Eshnunna, and Mari were the heavyweights of the era, their kings forging and breaking alliances with the regularity of the rising and setting sun. In this crowded and contentious arena, the city of Babylon was a relatively minor player, a small independent city-state established by Amorite tribes around 1894 BCE. It was a city of good farmland and strategic potential, but for its first century, it lived in the shadow of its more powerful neighbors.
Into this world, around 1810 BCE, a prince named Hammurabi was born. As the son of Sin-Muballit, the fifth king of Babylon's First Dynasty, he was raised not in opulent luxury, but in the practical arts of governance and warfare. He would have attended the ‘tablet house,’ the scribal school where he learned to read and write the complex cuneiform script, and studied the histories of Mesopotamian leaders who came before him. From a young age, he was being groomed for the throne, observing his father's administration and learning the delicate dance of diplomacy and the brutal calculus of war. When Sin-Muballit abdicated due to failing health, a young Hammurabi ascended to the throne in approximately 1792 BCE. He inherited not an empire, but a modest kingdom consisting of Babylon and a few surrounding towns like Kish and Sippar, a vulnerable island in a sea of powerful rivals.
The early years of Hammurabi's reign were marked by a cautious and pragmatic approach. Rather than launching immediately into ambitious conquests, he focused his energies inward, consolidating his power and improving his capital. Recognizing the need for peace to pursue these projects, he forged treaties with the more powerful kingdoms, buying himself time. He directed the construction of great temples and palaces, beautifying Babylon and reinforcing its status as a worthy celestial home for its patron deity, Marduk. Critically, he strengthened the city's defenses, raising its massive walls ever higher, and oversaw the expansion and maintenance of the intricate network of irrigation canals that were the lifeblood of his kingdom, boosting agricultural output and protecting the fields from floods. These projects were not merely practical; they were also powerful acts of royal propaganda, demonstrating his piety, his concern for his people's welfare, and his worthiness to rule.
While building at home, Hammurabi was a keen observer of the shifting sands of Mesopotamian politics. He was a master of diplomacy, patiently waiting for the opportune moment to act. For the first three decades of his reign, he played his rivals against one another, forming and dissolving alliances with calculated precision. His primary adversary to the south was the powerful kingdom of Larsa, ruled by the aging King Rim-Sin. To the east lay Eshnunna, and to the northwest, the prosperous and influential city-state of Mari, with whom Hammurabi cultivated a long and seemingly stable alliance. Tens of thousands of cuneiform tablets, discovered by archaeologists, reveal a detailed picture of the intricate relationships and correspondences between these kingdoms.
The political equilibrium began to shatter when the kingdom of Elam, to the east, invaded Mesopotamia and overran Eshnunna. This aggressive move created a power vacuum and an opportunity. Hammurabi, in a coalition with other city-states, drove the Elamites out. Shortly thereafter, in 1763 BCE, Hammurabi turned his attention to his old rival, Larsa. Allegedly annoyed that Rim-Sin had failed to provide adequate support in the war against Elam, Hammurabi formed an alliance with his trusted partner, Zimri-Lim of Mari, and marched south. The conquest of Larsa was a pivotal moment, giving Hammurabi control over all of southern Mesopotamia and its valuable resources.
With the south secured, Hammurabi's ambition grew. His long-standing alliance with Zimri-Lim of Mari began to fray. Historians debate the exact cause of the rift; it may have been a dispute over control of strategic towns or water rights, or simply Hammurabi's desire to eliminate a potential rival and seize Mari's immense wealth. In 1761 BCE, the Babylonian king broke his alliance and marched his army up the Euphrates. After defeating Zimri-Lim, he captured Mari. A couple of years later, when the city rebelled, Hammurabi's forces returned and destroyed it, an act of ruthlessness that sent a clear message across the region. After dealing with Mari, he swiftly conquered the remaining northern states, including Eshnunna. In a little over a decade of whirlwind campaigns, a patient and calculating diplomat had transformed into a relentless conqueror, uniting the fractured lands of Mesopotamia under a single authority for the first time in centuries. The minor king of a small city-state now ruled an empire.
Creating an empire through conquest was one thing; governing it was another challenge entirely. Hammurabi proved to be as adept an administrator as he was a military strategist. He established a centralized government with a sophisticated bureaucracy to manage his vast and diverse territories. Scribes and literate clerks formed the backbone of his administration, keeping meticulous records on clay tablets regarding everything from tax collection and resource management to military drafts and compulsory labor service known as the ilkum. When a new territory was conquered, Hammurabi would dispatch a corps of specialists under his direct command to integrate it into the imperial system. His surviving letters reveal a ruler deeply involved in the minutiae of governance, a king who demanded to be kept abreast of even the smallest details from across his realm.
This drive for order and unity found its ultimate expression in the work for which Hammurabi is most famous: his collection of laws. While often cited as the first law code in history, it was in fact preceded by earlier Mesopotamian legal collections, such as the Code of Ur-Nammu. However, Hammurabi's version is by far the longest, best-organized, and best-preserved legal text from the ancient Near East. The laws were compiled near the end of his reign and inscribed on steles—tall stone pillars—which were likely displayed in public spaces in major cities throughout the empire, such as Babylon and Sippar. The most famous of these steles, a nearly seven-and-a-half-foot tall pillar of black diorite, was rediscovered by a French archaeological team in 1901, not in Babylon, but in the ancient city of Susa in modern-day Iran. It had been carried off as plunder by an Elamite king in the 12th century BCE, a testament to its enduring value.
At the very top of the stele is a relief carving that is as much a part of the monument's message as the laws themselves. It depicts Hammurabi standing, his hand raised in a gesture of respect, before the enthroned figure of Shamash, the Mesopotamian god of the sun and divine justice. The god is extending to the king a rod and a ring, traditional symbols of authority. The message is unequivocal: these are not merely the laws of a mortal king; they are divinely ordained principles of justice, given to Hammurabi by the great judge of heaven and earth himself. In the prologue to the laws, Hammurabi states that the gods appointed him "to make justice visible in the land, to destroy the wicked person and the evil-doer, that the strong might not injure the weak."
The code consists of 282 edicts, each written in a conditional "if... then" format. They are not broad philosophical proclamations but rather specific legal precedents addressing a wide array of issues pertinent to Babylonian society. The laws cover matters of criminal justice, family law, property, and commerce. Nearly half of the laws deal with contracts, covering everything from the wages to be paid to laborers to the terms of transactions and liability for damaged property. A third of the code focuses on issues related to the household and family, such as inheritance, divorce, and adultery.
One of the most notable principles embedded in the code is the lex talionis, the law of retribution, famously encapsulated in the phrase "an eye for an eye, a tooth for a tooth." Law 196 states, "If a man destroy the eye of another man, they shall destroy his eye." Similarly, if a man broke another's bone, his own bone would be broken in return. Yet, this principle was not applied universally. The penalties prescribed in the code were heavily dependent on the social status of the parties involved.
Old Babylonian society was rigidly stratified into three main classes. At the top was the awilum, the upper class of nobles, government officials, priests, and land-owning gentlemen. In the middle was the mushkenum, a class of free commoners who were likely landless and dependent on the crown or temples. At the bottom of the social ladder was the wardum, the slave class. Slaves were mostly captives of war, but Babylonians could also be sold into slavery by their parents in times of need or be reduced to slavery as punishment for a crime. The laws gave different rights and set different punishments for crimes based on which class a person belonged to. For instance, while an awilum who destroyed the eye of another awilum would have his own eye destroyed, if he destroyed the eye of a mushkenum or a slave, the penalty was a simple monetary fine.
The laws concerning professional liability were particularly harsh. A physician who performed a major operation on a nobleman with a bronze lancet and caused the man's death would have his hands cut off. If a builder constructed a house that collapsed and killed the owner, the builder himself was to be put to death. If the collapse killed the owner's son, then the builder's son would be executed. These severe penalties were intended to ensure a high standard of workmanship and accountability.
Family matters were regulated with similar precision. Marriage was essentially a contract, and the laws dealt with issues like dowries and adultery. A woman accused of adultery without proof could swear an oath to a god to prove her innocence and return to her husband's house. If she was found guilty, however, the punishment was death by drowning. Despite the patriarchal nature of the society, the code did offer some protections for women and children, particularly in cases of inheritance or if they were falsely accused.
Some of the laws reveal practices that seem bizarre to the modern mind. For crimes that were difficult to prove, such as sorcery, the code prescribed a trial by ordeal. The accused would be thrown into the river. If they drowned, their accuser was entitled to take possession of their house. However, if the river "proved" their innocence by allowing them to escape unharmed, the accuser would be put to death, and the exonerated person would receive the accuser's house. This reflected a deep-seated belief that the gods would intervene directly to ensure justice was served. The code also contains some of the earliest examples of the principle that an accused person is to be considered innocent until proven guilty.
Hammurabi's reign continued for several years after the unification of Mesopotamia and the compilation of his laws. He died in 1750 BCE, passing the throne to his son, Samsu-iluna. He left behind an empire that stretched from the Persian Gulf to modern-day Syria, a capital city that he had transformed into a major metropolis, and an administrative system that set a new standard for governance. The Babylon he built, organized and administered with such meticulous detail, would become a legendary city, eclipsing the holy city of Nippur as the religious and cultural center of southern Mesopotamia.