In Hinduism, Sex is considered as a duty, or Dharma, for as a person moves from the celibate stage of the student to the householder, they must for fill their obligations. Sex is also used for Kama, or pleasure, as long as it is concentual, and within the sanctified unity of marriage. Sex is also for procreation, or making offspring.
In reference to contemporary sexual issues, extra or premarital sex is strictly forbidden, for it brings bad karma, thus halting the cycle of reincarnation, and stopping liberation or Moksha.
Beastiality, masturbation and other forms of sex is strictly forbidden.