Hammurabi's code is the oldest law text, or an equivalent of constitution, which specified the laws that people had to live by. While it was a strict law, including many corporal punishments, it did give some sort of justice and prohibited certain kinds of violence.