Laws can vary from place to place. For instance, the drinking age in the United States is 21, whereas in Ontario, Canada, nineteen year-olds can drink legally. The law can vary in context as well–if a soldier kills an enemy soldier during a war, it is not considered murder.
Most laws are meant to help people get along in a society. For instance, traffic laws help drivers avoid accidents.