Law refers to a system of rules and regulations enforced by a governing authority.
It is codified and enforced by the state through mechanisms such as police, courts, and punishments.
Morality refers to a set of principles or beliefs about what is right or wrong, good or bad, that guide individual behavior and decision-making.
While both law and morality involve rules governing behavior, law is a formal system of rules enforced by a governing authority, while morality is a set of personal or societal beliefs about right and wrong.