The Code of Hammurabi is written mainly in Akkadian. Akkadian was the Semitic language used by Babylonian scribes for administration, law, diplomacy, and literature, generally recorded in the cuneiform writing system.
The monument dates to the reign of Hammurabi, king of Babylon, in the 18th century BCE. Its prologue, legal provisions, and epilogue present royal justice as part of Hammurabi’s relationship with the gods and his subjects.
A common mix-up is calling the script itself Akkadian. Akkadian is the language; cuneiform is the writing system. The same script could represent Sumerian, Akkadian, and other ancient languages.
The text is not a complete modern-style legal code. It is a long royal monument containing roughly 282 numbered laws, covering subjects such as property, wages, trade, family, and personal injury.