Each major religion has developed moral codes covering issues of sexuality, morality, ethics etc. These moral codes seek to regulate the situations which can give rise to sexual interest and to influence people's sexual activities and practices.
Sexual morality has varied greatly over time and between cultures. A society's sexual norms—standards of sexual conduct—can be linked to religious beliefs, or social and environmental conditions, or all of these. Sexuality and reproduction are fundamental elements in human interaction and society worldwide. Furthermore, "sexual restrictions" is one of the universals of culture peculiar to all human societies. Accordingly, most religions have seen a need to address the question of a "proper" role for sexuality in human interactions. Different religions have different codes of sexual morality, which regulate sexual activity or assign normative values to certain sexually charged actions or thoughts.
The views of religions and religious believers range widely, from giving sex and sexuality a rather negative connotation to believing that sex is the highest expression of the divine. Some religions distinguish between sexual activities that are practiced for biological reproduction (sometimes allowed only when in formal marital status and at a certain age), and other activities practiced for sexual pleasure, as immoral.