Laws are rules that spell out how people should behave in society.Throught history, people have devised ways of setting disputes between neighbours and punishing wrongdoers. The earliest surviving set of laws was issued by Ur-Nammu, king of Sumer (modern Iraq), about 4,000 years ago.