In approximately 1771, BCE, Hammurabi, king of the Babylonian Empire, decreed a set of laws to every city-state in order to better govern his bourgeoning empire. Known today as the Code of Hammurabi, the 282 laws are one of the earliest and more complete written legal codes from ancient times.