
The Code of Hammurabi was a list of laws of Babylonia written about 1700 BC.
It was written on a stele (a large stone monument), and put in a public place where everyone could see it. The stele was later captured by the Elamites and taken to their capital, Susa. It was found there again in 1901, and is now in the Louvre Museum in Paris.
The code of Hammurabi had 282 laws written by scribes on 12 tablets. Unlike earlier laws, it was written in Akkadian, the daily language of Babylonia.

The Code of Hammurabi is the longest-surviving text from the Old Babylonian period. The code is an early example of a law regulating a government: a kind of basic constitution. The code is also one of the earliest examples of the "presumption of innocence" (innocent until proven otherwise). It suggests that both the accused and accuser have the opportunity to provide evidence.
The Code of Hammurabi was one of several sets of laws in the ancient Near East. The code of laws was arranged in groups, so that everyone who read the laws would know what was required of them. There were earlier laws, and later laws such as the Law of Moses in the Hebrew Bible. These codes come from cultures in a relatively small geographical area, and they have passages which resemble each other.
Nearly half the Code deals with contracts. It sets the wages to be paid to an ox driver or a surgeon. Other passages set 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 concerns household and family matters such as inheritance, divorce, paternity and sexual behaviour.
For each crime, a specific punishment is listed. Many of them look harsh to people now. The punishments included death, cutting off a body part, and the use of "an eye for an eye, a tooth for a tooth" ideas. The penalties of Hammurabi's laws may seem cruel to modern readers, but the fact that he put into writing the laws of his kingdom is considered an important step forward in the growth of civilization.
The Code of Hammurabi was one of many sets of laws in the Ancient Near East.