Hammurabi was the Babylonian king who created the Code of Hammurabi around 1754 BC, one of the earliest and most complete written legal codes in human history. Khufu built pyramids, Herodotus wrote history, and Celsus wrote medicine - none gave their subjects a code of laws.