human
When did the first written law code appear?
assistant
The first written law code was the Code of Hammurabi, which was written around the 17th century BC. The Code of Hammurabi was a set of laws written in the Babylonian language. It is the oldest surviving collection of laws, and it established a legal system that would be followed in many other parts of the world.