The Code of Hammurabi refers to a Babylonian code of law of ancient Mesopotamia enacted by the sixth Babylonian king which dated back to approximately 1754 BC.
It comprises 282 rules, such as established standards for commercial interactions and set fines and punishments to meet the requirements of justice.
Hammurabi’s Code provides some of the earliest examples of the doctrine of “lex talionis,” or the laws of retribution, usually refered to as “an eye for an eye.”