linguistic:translation, structural:scholar_edition
Background and ascension

Hammurabi ascended to the throne as the king of a minor kingdom in the midst of a complex geopolitical situation. Hammurabi was an Amorite First Dynasty king of the city-state of Babylon, and inherited the power from his father, Sin-Muballit, in c. 1792 BC. Babylon was one of the many largely Amorite-ruled city-states that dotted the central and southern Mesopotamian plains and waged war on each other for control of fertile agricultural land. Though many cultures co-existed in Mesopotamia, Babylonian culture gained a degree of prominence among the literate classes throughout the Middle East under Hammurabi. The kings who came before Hammurabi had founded a relatively minor city-state in 1894 BC, which controlled little territory outside of the city itself. Babylon was overshadowed by older, larger, and more powerful kingdoms, such as Elam, Assyria, Isin, Eshnunna, and Larsa for a century or so after its founding. However, his father Sin-Muballit had begun to consolidate rule of a small area of south central Mesopotamia under Babylonian rule and, by the time of his reign, had conquered the minor city-states of Borsippa, Kish, and Sippar.

The powerful kingdom of Eshnunna controlled the upper Tigris River, while Larsa controlled the river delta. To the east of Mesopotamia lay the powerful kingdom of Elam, which regularly invaded and forced tribute upon the small states of southern Mesopotamia. In northern Mesopotamia, the Assyrian king Shamshi-Adad I, who had already inherited centuries-old Assyrian colonies in Asia Minor, had expanded his territory into the Levant and central Mesopotamia, although his untimely death would somewhat fragment his empire.