The seeming contradictions of Indian attitudes towards sex can be best explained through the context of history. India played a role in the history of sex, from writing the first literature that treated sexual intercourse as a science, to in modern times being the origin of the philosophical focus of new-age groups' attitudes on sex. It may be argued that India pioneered the use of sexual education through art and literature. As in all societies, there was a difference in sexual practices in India between common people and powerful rulers, with people in power often indulging in hedonistic lifestyles that were not representative of common moral attitudes.

The origins of the current Indian culture can be traced back to the Indus Valley civilization, which was contemporaneous with the ancient Egyptian and Sumerian civilizations, around 5500 years ago.[1] During this period, there is not much known about the social views towards sex. One thing that has been observed about sexuality in the Indus Valley civilization, is the practice of fertility rituals.[citation needed]

The first evidence of attitudes towards sex comes from the ancient texts of Hinduism, Buddhism. These most ancient texts, the Vedas, reveal moral perspectives on sexuality, marriage and fertility prayers. The epics of ancient India, the Ramayana and Mahabharata, which may have been first composed as early as 1500 BCE, had a huge effect on the culture of Asia, influencing later Chinese, Japanese, Tibetan and South East Asian culture. These texts support the view that in ancient India, sex was considered a mutual duty between a married couple, where husband and wife pleasured each other equally, but where sex was considered a private affair, at least by followers of the aforementioned Indian religions.[citation needed] It seems that polygamy was allowed during ancient times. In practice, this seems to have only been practiced by rulers, with common people maintaining a monogamous marriage. It is common in many cultures for a ruling class to practice both polyandry and polygyny as a way of preserving dynastic succession.

Nudity in art was considered acceptable in southern India, as shown by the paintings at Ajanta and the sculptures of the time. It is likely that as in most countries with tropical climates, Indians from some regions did not need to wear clothes, and other than for fashion, there was no practical need to cover the upper half of the body. This is supported by historical evidence, which shows that men in many parts of ancient India mostly dressed only the lower half of their bodies with clothes and upper part of body was covered by gold and precious stones, jewellery, while women used to wear traditional sarees made of silk and expensive clothes as a symbol of their wealth.

As Indian civilization further developed over the 1500 years after the births of Mahavira, and the writing of the Upanishads around 500 BCE, it was somewhere between the 1st and 6th centuries that the Kama Sutra, originally known as Vatsyayana Kamasutram ('Vatsyayana's Aphorisms on Love'), was written.[citation needed] This philosophical work on kama shastra, or 'science of love', was intended as both an exploration of human desire, including infidelity, and a technical guide to pleasing a sexual partner within a marriage. This is not the only example of such a work in ancient India, but is the most widely known in modern times. It is probably during this period that the text spread to ancient China, along with Buddhist scriptures, where Chinese versions were written.

It is also during 10th century to 12th century that some of India's most famous ancient works of art were produced, often freely depicting romantic themes and situations. Examples of this include the depiction of Apsaras, roughly equivalent to nymphs or sirens in European and Arabic mythology, on some ancient temples. The best and most famous example of this can be seen at the Khajuraho complex in central India built around 9th to 12th century.

"“India’s pre-colonial traditional as well as various localized folk traditions have taken a far healthier attitudes in dealing with sex-education, that may surprise many people on both sides of the fence of sex-education who want to map Indian culture with dominant Victorian male value system. Various folk deities and traditions emphasize fluid nature of gender and mythologies have stories that reinforce this idea. So a child growing up will not have a strong shock value or guilt feeling in relating to one’s own sexuality or others as gender-variants. Devi Mahatmya and Mahabharata are two such examples. Koothandavartemple festival in Tamil Nadu is another example of local folk tradition organically linked to the pan-Indian culture in dealing positively with creating awareness for and empowering gender-variants. These cultural possibilities need to be taken up and explored to create democratic social space for gender-minorities.[2] Indian culture is originally abundant with legends and mythologies where heroes and heroines have chosen various genders without guilt and their choices have been accepted and respected. Ironically, today the western nations are progressive in researching and educating about gender and sexuality expressions, while India, despite of It's rich cultural heritage respecting and accepting gender variations and choices are lagging behind and even lacking that sensitivity. Hindu society had a clear cut idea of all these people in the past. Now that we have put them under one label ‘LGBT’, there is lot more confusion and other identities have got hidden."[3]

At the end of the medieval period in India and Europe, colonial powers such as the Portuguese, British and French were seeking ways of circumventing the Muslim controlled lands of western Asia, and re-opening ancient Greek and Roman trade routes with the fabled rich lands of India, resulting in the first attempts to sail around Africa, and circumnavigate the globe. Various European powers eventually found ways of reaching India, where they allied with various post-Mughal Indian kings, and later managed to annex India.

Although the Portuguese and French had managed to set up some small enclaves in India, such as Goa, where the Catholicinquisition forcibly converted some of the population of the small region to Catholicism, it was the arrival of the British, who managed to annex the entire Indian subcontinent through alliances with various monarchs, that had the largest effect on the culture of India and its attitudes to sex. Rule was indirect at first through the East India Company whose administrators did not necessarily interfere extensively and even took advantage of the tattered remnants of Hindu liberalism in sexual matters, for example through liaisons and by maintaining de facto wives. At the same time there were significant number of orientalists who saw India as a great civilization, invented the field of Indology, and advocated a more accepting point of view.

However the East India Company was progressively brought under the control of the British Parliament and Crown by Acts of Parliament in 1773, 1784, 1786, 1813, 1833 and 1853. The Indian Rebellion of 1857 caused widespread condemnation of the East India Company's alleged shortcomings and the Government of India Act 1858 completely did away with the Company's intermediary role, ushering in the British Raj era of direct rule. This put India much more at the mercy of Britain's official guardians of morality. Victorian values stigmatized Indian sexual liberalism. The pluralism of Hinduism, and its liberal attitudes were condemned as 'barbaric' and proof of inferiority of the East. The effects of British education, administration, scholarship of Indian history and biased literature all led to the effective 'colonization' of the Indian mind with European values. This led some Indians wanting to conform their religious practices and moral values to Victorian ideas of "high" civilization.

A number of movements were set up by prominent citizens, such as the Brahmo Samaj in Bengal and the Prarthana Samaj in Bombay Presidency, to work for the 'reform' of Indian private and public life. Paradoxically while this new consciousness led to the promotion of education for women and (eventually) a raise in the age of consent and reluctant acceptance of remarriage for widows, it also produced a puritanical attitude to sex even within marriage and the home. The liberality of precolonial India had also respected the home and relationships.

Conservative views of sexuality are now the norm in the modern republic of India, and South Asia in general. It is often argued that this is partly related to the effect of colonial influence, as well as to the puritanical elements of Islam in countries like Pakistan (e.g. the Islamic revivalist movements, which has influenced many Muslims in Pakistan and Bangladesh). However, such views were also prevalent in the precolonial era, especially since the advent of Islam in India which brought purdah as ideal for Muslim women. Before the gradual spread of Islam largely through the influence of Sufis, there seems to be evidence of liberal attitudes towards sexuality and nudity in art. However, scholars debate the degree to which Islam, as a mass and varied phenomenon was responsible for this shift.

While during the 1960s and 1970s in the west, many people discovered the ancient culture of sexual liberalism in India as a source for western free love movements, and neo-Tantric philosophy, India itself is currently the more prudish culture, embodying Victorian sensibilities that were abandoned decades ago in their country of origin. However, with increased exposure to world culture due to globalization, and the proliferation of progressive ideas due to greater education and wealth, India is beginning to go through a western-style sexual revolution of its own, especially in cosmopolitan cities.

Modern issues that affect India, as part of the sexual revolution, have become points of argument between conservative and liberal forces, such as political parties and religious pressure groups. These issues are also matters of ethical importance in a nation where freedom and equality are guaranteed in the constitution.

The entertainment industry is an important part of modern India, and is expressive of Indian society in general. Historically, Indian television and film has lacked the frank depiction of sex; until recently, even kissing scenes were considered taboo. On the other hand, rape scenes or scenes showing sexual assault were shown. Currently, some Indian states show soft-core sexual scenes and nudity in films, whilst other areas do not. Mainstream films are still largely catered for the masses.

The distribution and production of pornography are both illegal in India; however, accessing pornography in private is not. Regardless, softcore films have been common since the late 1970s, and many directors have produced them. Magazine publications like Debonair (magazine),Fantasy,Chastity,Royal Magazine, and Dafa 302 exist in India, and more than 50 million Indians are believed to see porn on a daily basis.

Savita Bhabhi[4] is a manga-like erotic cartoon strip about the adventures of a bored and husband-neglected housewife.

A Desi Fantasy website solicited and gave access to user-written pornographic narratives but as of 2010 seemed to have disappeared into the ether, leaving behind a compendium in a blog hosted outside India. These narratives are in a mixture of English and romanized Hindi/Urdu. They are notable for situations inside traditional extended families that might be considered incestuous as well as for situations outside traditional families, perhaps documenting the sex lives of Indian yuppies whose lifestyles seem to resemble those of their western counterparts.

The Information Technology Act, Chapter XI Paragraph 67, the Government of India clearly considers online pornography as a punishable offense. The CEO of the Indian subsidiary of eBay was charged with various criminal offenses for allowing the trading of a CD containing these clips on the website.[5]

While trade in sex was frowned upon in ancient India, it was tolerated and regulated so as to reduce the damage that it could do. Unfortunately, however, the stigmatisation that has arisen in modern times has left the many poor sex workers with problems of exploitation and rampant infection, including AIDS, and worse, it has allowed a huge people-trafficking industry, like that of Eastern Europe, to take hold. Many poor young women are kidnapped from villages and sold into sexual slavery.[6][7] There have been some recent efforts to regulate the Indian sex industry.

In 2007, the India Ministry of Women and Child Development did a survey of children and young adults. [1] Of the survey's respondents, 53.22% of children reported having faced sexual abuse, 5.69% had been sexually assaulted (oral sex or penetration of vagina or anus), 21.90% of child respondents faced severe forms of sexual abuse including assault, exposure or being photographed in the nude, 50.76% reported other forms of sexual abuse including sexual advances in travel or marriage situations, exhibitionism and being forced to view pornographic material, and 50% of abusers were known to the children or in a position of trust and responsibility. Most children had not reported the matter. The authors concluded:

The subject of child sexual abuse is still a taboo in India. There is a conspiracy of silence around the subject and a very large percentage of people feel that this is a largely western problem and that child sexual abuse does not happen in India. Part of the reason of course lies in a traditional conservative family and community structure that does not talk about sex and sexuality at all. Parents do not speak to children about sexuality as well as physical and emotional changes that take place during their growing years. As a result of this, all forms of sexual abuse that a child faces do not get reported to anyone. The girl, whose mother has not spoken to her even about a basic issue like menstruation, is unable to tell her mother about the uncle or neighbour who has made sexual advances towards her. This silence encourages the abuser so that he is emboldened to continue the abuse and to press his advantage to subject the child to more severe forms of sexual abuse. Very often children do not even realize that they are being abused. In a study on Women's Experiences of Incest and Childhood Sexual Abuse conducted by RAHI, some of the respondents have stated that till the questionnaire was administered to them they did not realize that they had been abused as children. They had buried the incident as a painful and shameful one not to be ever told to anyone. Some deep seated fear has always moved Indian families to keep their girls and their 'virginity' safe and many kinds of social and cultural practices have been built around ensuring this. This shows that there is knowledge of the fact that a girl child is unsafe though nobody talks about it. However this fear is only around girls and the safety net is generally not extended to boys. There is evidence from this as well as other studies that boys are equally at risk.

In recent years, movies based in India have addressed the issue of sexual abuse. The 2001 film Monsoon Wedding, written by Sabrina Dhawan and directed by Mira Nair, had a subplot with a longtime abuser finally confronted.[8][9] And in the Oscar-winning 2008 film Slumdog Millionaire, part of the plot involves the protagonist's attempt to rescue his childhood friend and love interest from a gangster who has captured her and intends to sell her virginity.