Law, in the religious sense, also includes codes of ethics and morality which are upheld and required by God. Examples include customary Hindu law, Islamic law, and the divine law of the Mosaic code or Torah.
State churches and similar established religions are branches of the governments that establish them. In some jurisdictions, this means that they operate legal systems of their own or play a part in the legal system of those governments. Canon law is one such sort of legal system; it was administered in ecclesiastical courts. In England, the system of equity was originally established by the Church.
In Christianity, law is often contrasted with grace: the contrast here speaks to attempts to gain salvation by obedience to the code of laws, as opposed to seeking salvation through faith in the atonement made by Jesus on the cross. Compare legalism and antinomianism.
See also Law.