For decades, despite revisions, the archaic law categorized consensual sexual intercourse between same-sex people as an “unnatural offence” which is “against the order of nature”. Individuals of the LGBTQ community had filed many petitions at various courts and fought against the law, demanding legal protection against harassment and violence.
It was only in 2018 that the Supreme Court struck down the law declaring Section 377 “unconstitutional”, saying it discriminated against individuals of the LGBTQ community on the basis of sexual orientation. The apex court decriminalized same-sex intercourse and termed it a matter of privacy.
Reference: