Hammurabi was the sixth Amorite king of the Old Babylonian Empire, reigning from c. 1792 to c. 1750 BC. Hammurabi is best known for having issued the Code of Hammurabi, which is the longest, best-organised, and best-preserved legal text from the ancient Near East.