Answer:
According to the sources we have it was created somewhere around 1754 BC.
Step-by-step explanation:
Hammurabi was a famous Babylonian ruler from the 18th Century BC. His code is the first known written law in the human history that we know of.
Certain obligation, punishments and codes incorporated in it are pretty harsh, but it was the first try to codify the laws in certain country.