Law and morality are both codes of conduct; Morality is mainly realized through the constraints of public opinion; Laws are mainly enforced by the state. If morality is the higher realm that people pursue, then not breaking the law is the bottom line of people's behavior.