Sin is a term use mainly in a religious context to describe an act that violates a moral rule, or the state of having committed such a violation. Commonly, the moral code of conduct is decreed by a divine entity (such as Yahweh or Allah in the Abrahamic religions).