What civilization wrote the first known code of laws?

Ur-Namma Sumerian Empire

the Assyrians

Hammurabi's Babylonian Empire

the Persians

Hammurabi's Babylonian Empire is credited with writing the first known code of laws, known as the Code of Hammurabi.