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.
In the perspective of traditional Judaism, sex and reproduction are the holiest of acts one can do, the act through which one can imitate God, "The Creator", and in order to preserve its sanctity there are many boundaries and guidelines. Within the boundaries, there are virtually no outright strictures, and it is in fact obligatory. It prohibits sexual relations outside of heterosexual marriage, maintains biblical strictures on relations within marriage including observance of Niddah, a prohibition on relations for a period including the menstrual period, and Tzniut, requirements of modest dress and behavior. Traditional Judaism views adultery, incest, and male or female homosexual acts as grave sins. See Jewish views of homosexuality. Judaism permits relatively free divorce, with Orthodox Judaism and Conservative Judaism requiring a religious divorce ceremony for a divorce to be religiously recognized. More modern branches of Judaism have adapted perspectives more consistent with contemporary general secular culture.