The system of taboo (kapu) gave society its laws and the people a complex moral code.
The taboo system gave people a set of morals.