Section 377 of the Indian Penal Code, before being partially struck down by the Supreme Court in 2018, criminalized 'unnatural offences'. This section was historically used to criminalize consensual sexual acts between same-sex adults, although its wording was broader. The Supreme Court's judgment decriminalized consensual same-sex relations by reading down this section.