The Code of Hammurabi is a well-preserved Babylonian law code, dating back to about 1772 BC. It is one of the oldest deciphered writings of significant length in the world. The sixth Babylonian king, Hammurabi, enacted the code, and partial copies exist on a human-sized stone stele and various clay tablets. The Code consists of 282 laws, with scaled punishments, adjusting "an eye for an eye, a tooth for a tooth" (lex talionis) as graded depending on social status, of slave versus free man.
Nearly one-half of the Code deals with matters of contract, establishing for example the wages to be paid to an ox driver or a surgeon. Other provisions set the terms of a transaction, establishing the liability of a builder for a house that collapses, for example, or property that is damaged while left in the care of another. A third of the code addresses issues concerning household and family relationships such as inheritance, divorce, paternity and sexual behavior. Only one provision appears to impose obligations on an official; this provision establishes that a judge who reaches an incorrect decision is to be fined and removed from the bench permanently. A handful of provisions address issues related to military service.
Hammurabi (Akkadian from Amorite ʻAmmurāpi, "the kinsman is a healer", from ʻAmmu, "paternal kinsman", and Rāpi, "healer"; (died c. 1750 BC) was the sixth king of Babylon (that is, of the First Babylonian Dynasty) from 1792 BC to 1750 BC middle chronology (1728 BC – 1686 BC short chronology). He became the first king of the Babylonian Empire following the abdication of his father, Sin-Muballit, extending Babylon's control over Mesopotamia by winning a series of wars against neighboring kingdoms. Although his empire controlled all of Mesopotamia at the time of his death, his successors were unable to maintain his empire.
Hammurabi is known for the set of laws called Hammurabi's Code, one of the first written codes of law in recorded history.[citation needed] These laws were inscribed on stone tablets (stelae) standing over eight feet tall (2.4 meters), of unknown provenance, found in Persia in 1901. Owing to his reputation in modern times as an ancient law-giver, Hammurabi's portrait is in many government buildings throughout the world.