Morality is the compass of what people ought to or ought not to do, especially when it can cause benefit or harm to other people.
One of the really towering intellectual achievements of the 20th century was understanding the origins of morality in the context of Evolutionary game theory.
See also: ethics