It's created by King Hammurabi of the Babylonian Empire during 1792-1750 B.C..
The Hammurabi Code's goal was to bring justice, and was called 'eye for eye code'.
The Hammurabi Code was the beginning of law 法律 and society should be run by rule of law.
People had the right to write the law and cancel the punishments for those who broke the laws.