Section 377 and Navtej Singh Johar: why gay sex was a crime

A clause drafted by a British law commission in 1837 made gay sex a crime in India for 158 years. Here is how it got there, how it was undone, and what is still missing.

Marchers with rainbow flags at the Delhi Queer Pride Parade in 2023
Photo: Hghulam49, CC BY-SA 4.0, via Wikimedia Commons

Gay sex was a crime in India because of Section 377 of the Indian Penal Code, a colonial clause drafted by Thomas Babington Macaulay's law commission in 1837 and enacted in 1860, which punished "carnal intercourse against the order of nature" with up to life imprisonment. On 6 September 2018, in Navtej Singh Johar v. Union of India, a five-judge Supreme Court bench unanimously read it down so that it no longer covers consenting adults in private. When the Bharatiya Nyaya Sanhita replaced the IPC on 1 July 2024, Section 377 was dropped altogether.

Key takeaways
  • 1837: Macaulay's Indian Law Commission submits the draft penal code; it becomes the IPC in 1860.
  • 158 years of criminalisation, from 1860 to the Navtej judgment of 6 Sept 2018.
  • 1,279 people in 2014 and 1,491 in 2015 were arrested under Section 377 (NCRB, cited in Navtej).
  • Public acceptance rose from 15% to 37% between the 2013-14 and 2019 Pew surveys, still below the 34-country median of 52%.
  • Gay sex is legal, but same-sex marriage is not: the Supreme Court left that to Parliament in Supriyo (2023).

The usual line is that the law was "Victorian morality". That is true as far as it goes, but the full story has three acts: a British drafting choice, a 15-year Indian court battle, and a 2024 rewrite of the criminal code that solved one problem and opened another. For a visitor, the short version is that a same-sex couple breaks no law in India today, but has none of the legal protections of marriage.

1860year the IPC, with s.377, was enacted
6 Sept 2018Navtej Singh Johar judgment
5-0bench decision to read down s.377
37%Indians who say homosexuality should be accepted (Pew, 2019)

What was Section 377?

Section 377 was the IPC's "unnatural offences" clause. It punished anyone who "voluntarily has carnal intercourse against the order of nature with any man, woman or animal" with imprisonment for life, or up to ten years, plus a fine. An explanation added that penetration alone was enough to complete the offence.

Notice what the text did not say. It never mentioned homosexuality, and it applied to "any man, woman or animal". In practice, though, it was the legal tool used against gay and bisexual men and transgender people, because it criminalised the sex they had. The Navtej bench quoted NCRB data showing 1,279 arrests in 2014 and 1,491 in 2015 under the section.

Where did Section 377 come from?

From London, via a law commission in Calcutta. The Navtej judgment traces the line: Parliament set up the Indian Law Commission during East India Company rule, and in 1833 Thomas Babington Macaulay was appointed to chair it. The commission submitted its draft penal code of 488 clauses on 14 October 1837, which was revised for two decades and enacted as the Indian Penal Code in 1860.

The model was English law, which then treated sodomy as a capital crime. The judgment notes that the last two men executed for it in Britain were hanged on 27 November 1835, two years before Macaulay's draft. India got a milder penalty, but the same idea.

Section 377: from draft to deletion 1837: Macaulay commission's draft penal code 1860: Indian Penal Code enacted with s.377 2 July 2009: Delhi HC reads it down (Naz Foundation) 11 Dec 2013: Supreme Court restores it (Koushal) 2017: Puttaswamy, privacy covers sexual orientation 6 Sept 2018: Navtej, read down for consenting adults 17 Oct 2023: Supriyo, no right to same-sex marriage 1 July 2024: BNS replaces IPC, no s.377
Accent dots are steps towards decriminalisation; dark dots are setbacks. Dates from the Navtej judgment, Wikipedia and PRS Legislative Research.

How did Indian courts strike it down?

It took two rounds. The Delhi High Court went first in Naz Foundation v. Government of NCT of Delhi on 2 July 2009, holding the section unconstitutional as applied to consensual adult sex. On 11 December 2013, a two-judge Supreme Court bench reversed it in Suresh Kumar Koushal v. Naz Foundation, saying any change was for Parliament.

The turn came from a different case. In K.S. Puttaswamy v. Union of India (2017), a nine-judge bench on the right to privacy said, through Justice D.Y. Chandrachud, that sexual orientation is an essential part of the rights the Constitution guarantees, which do not depend on majority approval. On 8 January 2018, a three-judge bench hearing a fresh 2016 petition led by Navtej Singh Johar and others sent the question to a larger bench.

The story

On 6 September 2018, five judges of the Supreme Court, Chief Justice Dipak Misra with Justices R.F. Nariman, A.M. Khanwilkar, D.Y. Chandrachud and Indu Malhotra, delivered four separate opinions that all reached the same end. Section 377 was read down to exclude consensual sex between adults in private, whether of the same sex or not. It would still cover non-consensual acts against adults, all such acts against minors, and bestiality. Koushal was overruled. The Union government had not defended the law for consenting adults and left it to the court's wisdom. Justice Malhotra's opinion closed with a line that became the day's headline: "History owes an apology to the members of this community".

Supreme Court: Navtej Singh Johar v. Union of India, W.P. (Crl.) 76 of 2016, via Indian Kanoon
The central wing of the Supreme Court of India in New Delhi, which houses the Chief Justice's courtroom
The central wing of the Supreme Court in New Delhi. The Navtej bench sat as a five-judge Constitution Bench.Photo: Subhashish Panigrahi, CC BY-SA 4.0, via Wikimedia Commons
CaseCourt and dateWhat it decided
Naz Foundation v. NCT of DelhiDelhi High Court, 2 July 2009s.377 unconstitutional for consensual adult sex
Suresh Kumar Koushal v. Naz FoundationSupreme Court (2 judges), 11 Dec 2013Reversed Naz; change left to Parliament
K.S. Puttaswamy v. Union of IndiaSupreme Court (9 judges), 2017Privacy is a fundamental right; orientation is part of it
Navtej Singh Johar v. Union of IndiaSupreme Court (5 judges), 6 Sept 2018Read down s.377; Koushal overruled
Supriyo v. Union of IndiaSupreme Court (5 judges), 17 Oct 2023No fundamental right to marry; recognition left to Parliament

What was the court's reasoning?

The bench built its decision on constitutional morality over social morality. Majority disapproval, it said, cannot justify taking away the rights in Part III of the Constitution. The petitioners argued, and the opinions largely accepted, that the section violated:

  • Article 14 (equality), because the "order of nature" test was vague and fell hardest on one group;
  • Article 15 (no discrimination on grounds of sex), read to include sexual orientation;
  • Article 19(1)(a) (expression), since people could not openly express identity;
  • Article 21 (life, dignity and privacy), drawing on Puttaswamy and the NALSA judgment on gender identity.

The court also relied on medical consensus, quoting the American Psychological Association's 1994 position that homosexuality is neither a mental illness nor moral depravity.

The law did not move because society did. It moved first, and the polls followed at a distance.Sapta, reading the Pew trend against the Navtej date

Yes. Since 2018, consensual sex between adults of the same sex in private is not an offence, and since 1 July 2024 the section itself no longer exists. PRS Legislative Research, analysing the BNS, notes that it "omits S. 377 of IPC", which also removes rape of men and bestiality as offences. That is the unfinished part of the story: the old section, whatever its history, was the only provision that covered forced penetrative sex against an adult man.

What remains illegal applies to everyone equally. Public obscenity rules (BNS 296) do not change with the couple's genders, and sexual acts with anyone under 18 are crimes under POCSO. I cover the first in the PDA and obscenity law.

What the law covered, three snapshots IPC s.377, to 2018 After Navtej, 2018 BNS, from July 2024 Consenting adults: crime Forced acts on adults: crime Acts with minors: crime Bestiality: crime Consenting adults: legal Forced acts on adults: crime Acts with minors: crime Bestiality: crime Consenting adults: legal Rape of men: no offence Acts with minors: POCSO Bestiality: no offence Source: Navtej (2018) operative order; PRS analysis of the BNS
The 2024 code removed the consent problem for good, but also removed the clause that covered forced acts against adult men.

Do Indians accept homosexuality now?

More than before, but still a minority. Pew Research Center asked nationally representative samples whether homosexuality "should be accepted by society". In India the share saying yes rose from 15% in the 2013-14 survey to 37% in 2019, a 22-point jump that tied with South Africa for the largest change Pew recorded between those rounds.

Share who say homosexuality should be accepted by society, 2019
See the data as a table
Should be accepted (%)
Sweden94
Australia81
Philippines73
United States72
Japan68
South Africa54
Israel47
South Korea44
India37
Kenya14
Indonesia9
Nigeria7

Source: Pew Research Center, The Global Divide on Homosexuality Persists (June 2020) · 34-country median: 52%. India surveyed face to face.

Two things to read from this:

  1. India sits well below the global median of 52% but far above its region's lowest, such as Indonesia at 9%.
  2. The gap between law and opinion is real: courts have moved faster than families.

That gap is why many queer Indians still face pressure to marry, which links to the wider story of how marriages are arranged in India and of violence against couples who choose for themselves.

The Global Divide on Homosexuality PersistsJacob Poushter and Nicholas Kent · Pew Research Center · 2020

Pew surveyed 38,426 people in 34 countries between 13 May and 2 October 2019, face to face in India, asking whether homosexuality should be accepted or discouraged by society. The 34-country median was 52% accept and 38% discourage. India rose from 15% to 37% acceptance since its first nationally representative round in December 2013 to January 2014. Younger and more educated respondents were more accepting in most countries. The limit: a single yes-or-no attitude question cannot capture how people treat a gay colleague or relative, and face-to-face interviews may push answers towards what feels socially safe.

Read the report (free)
Awareness and attitude of undergraduate medical students to LGBT community: A cross-sectional studyArya Jith and Nidhamary Nixon Manjaly · Industrial Psychiatry Journal · 2026

The authors surveyed 380 MBBS students and interns at one medical college in Thiruvananthapuram in September and October 2023, using the 18-item LGBT Development of Clinical Skills Scale. Attitudes were mostly positive (94% of women and 79% of men), but 87% scored low on clinical preparedness and 59% low on basic knowledge. Five years after Navtej, future doctors in India's most literate state were willing but untrained. The limit: one college, self-reported answers, and no measure of behaviour with real patients.

Read the paper (free)
A large rainbow flag carried at the Kolkata Rainbow Pride Walk in 2022
The flag of the 2022 Kolkata Rainbow Pride Walk. Pride walks now run in most large Indian cities.Photo: Marajozkee, CC BY-SA 4.0, via Wikimedia Commons

No. On 17 October 2023, in Supriyo v. Union of India, a five-judge bench led by Chief Justice D.Y. Chandrachud unanimously held that there is no fundamental right to marry and that recognising same-sex marriage is for Parliament. The court dismissed review petitions on 9 January 2025. No law has been passed since.

In practice, that means a same-sex couple, Indian or foreign, has no route to register a marriage under Indian marriage law and none of its default rights over inheritance, adoption or medical decisions. More detail is in the Supriyo ruling explained and the wider LGBTQ rights guide.

Which countries still have Section 377?

Several former British colonies kept the same clause. Wikipedia's summary of the section lists it still in force in Pakistan, Bangladesh and Myanmar, in Malaysia as Section 377A and in Sri Lanka as Section 365. India's path, read down by courts and then deleted in a new code, is one of the few that ended in full removal.

CountryColonial-era clauseStatus
IndiaIPC s.377Read down 2018; omitted from BNS 2024
PakistanPPC s.377In force
BangladeshPenal Code s.377In force
MyanmarPenal Code s.377In force
Sri LankaPenal Code s.365In force
MalaysiaPenal Code s.377AIn force

Source: Wikipedia, Section 377 (status as summarised there; check current law before relying on it). This is general information, not legal advice.

A large banner reading Pride Over Prejudice carried by marchers at a pride parade in India
"Pride over prejudice": the slogan on a banner at an Indian pride march.Photo: Parvjain13, CC BY-SA 4.0, via Wikimedia Commons

Questions people ask

Is being gay legal in India?

Yes. Consensual sex between adults of the same sex has not been a crime since Navtej Singh Johar (6 September 2018), and Section 377 was removed from the criminal code when the BNS took effect on 1 July 2024.

What was Section 377?

The "unnatural offences" clause of the 1860 Indian Penal Code, punishing carnal intercourse against the order of nature with up to life imprisonment. It was used mainly against gay and bisexual men and transgender people.

Does Section 377 still apply to anything?

Not any more. After Navtej it survived only for non-consensual acts against adults, acts against minors and bestiality. The BNS, in force since 1 July 2024, has no equivalent, so acts against minors fall under POCSO, while PRS notes that rape of men and bestiality are no longer specific offences.

Can same-sex couples marry or adopt in India?

They cannot marry under Indian law. The Supreme Court held in Supriyo (2023) that only Parliament can create that right, and dismissed review petitions in January 2025.

Sources

  1. Supreme Court: Navtej Singh Johar v. Union of India (2018), via Indian Kanoon (text of s.377, Macaulay history, NCRB arrests, operative order, Malhotra J's quote)
  2. Supreme Court of India: Navtej judgment PDF (2018)
  3. Wikipedia: Section 377 (Naz and Koushal dates; countries where it remains)
  4. PRS Legislative Research: The Bharatiya Nyaya Sanhita, 2023 (omission of s.377 and its effect)
  5. Wikipedia: Supriyo v. Union of India (date and bench)
  6. LiveLaw: Same-sex marriage, still a pending wish in 2025? (review dismissed 9 Jan 2025)
  7. Pew Research Center: The Global Divide on Homosexuality Persists (2020)
  8. Industrial Psychiatry Journal: Awareness and attitude of undergraduate medical students to LGBT community (2026)
  9. LiveLaw: Kolkata Pride and constitutional crossroads (2026)
Section 377Navtej Singh JoharSuresh Kumar KoushalNaz FoundationLGBTQ rights IndiaMacaulayBNS 2023SupriyoPew Research
Sapta

Sapta (Saptarshi Sarkar) is a mechanical engineer turned marketer in Bengaluru and a solo touring rider. He writes the seven Saptaverse blogs. Work with him or read more of Whyblog.

Keep reading in Whyblog

From the other blogs