The Code of Hammurabi (also known as the Codex Hammurabi and Hammurabi's Code), created ca. 1760 BC (short chronology), is one of the earliest extant sets of laws and one of the best preserved examples of this type of document from ancient Mesopotamia. Still earlier collections of laws include the codex of Ur-Nammu, king of Ur (ca. 2050 BC), the Codex of Eshnunna (ca. 1930 BC) and the codex of Lipit-Ishtar of Isin (ca. 1870 BC).