Ancient Sumer 's Code of Ur - Nammu was compiled circa 2050 -- 1230 BC, and is the earliest known surviving civil code. Three centuries later, the Babylonian king Hammurabi enacted the set of laws named after him.
where did the idea of codification come from
Ancient Sumer 's Code of Ur - Nammu