The Jewish tradition devotes considerable attention to sexuality. Sexuality is the subject of many narratives and laws in the Tanakh and rabbinic literature.
In Judaism, sexuality is viewed as having both positive and negative potential, depending on the context in which it is expressed. According to the Rabbinical enumerations of the 613 commandments, the commandment to procreate is the first mitzvah in the Torah:
"And God blessed them; and God said unto them: Be fruitful, and multiply [Peru Urevu], and replenish the earth, and subdue it; and have dominion over the fish of the sea, and over the fowl of the air, and over every living thing that creepeth upon the earth"
This commandment, known as peru urevu (פרו ורבו), is only binding on men; women are exempt because childbirth puts them in physical danger, though a dissenting opinion is recorded in the mishnah Yevamot 6:6. This commandment was originally binding on all of humanity, as it was given to Adam, the progenitor of all mankind. However, after the giving of the Torah it became obligatory on Jews only.
According to the Sefer haChinnuch, the central nature of this mitzvah is due to the fact that God desires for the world to be populated. However, there is another Torah commandment known as onah (Heb: עונה) which obligates a man to provide sexual intercourse to his wife on a regular basis, regardless of whether they have already had children.
The Jewish sages recognized that the sexual need of mankind (also known as Yitzra De'arayot) is essential for perpetuating society, despite having its negative sides which may lead to sins. For this reason, Chazal's attitude and statements on the matter are dual, and they recognize two inclinations in mankind, the Yetzer hatov (the "Good inclination") and the Yetzer hara (the "evil inclination"), that can both influence sexuality and sexual behaviours. Maimonides discusses this dichotomy explicitly:
"A man's wife is permitted to him. Therefore a man may do whatever he desires with his wife. He may engage in relations whenever he desires, kiss any organ he desires, engage in vaginal or other intercourse or engage in physical intimacy without relations, provided he does not release seed in vain. Nevertheless, it is pious conduct for a person not to act frivolously concerning such matters and to sanctify himself at the time of relations, as explained in Hilchot Deot. He should not depart from the ordinary pattern of the world. For this act was [given to us] solely for the sake of procreation...