Section 377 of the penal code, a relic from 1860s British legislation, bans gay acts as “carnal intercourse against the order of nature” and allows for jail terms of up to life, although prosecutions are rare.
In 2009 the Delhi High Court effectively decriminalised gay sex, saying a ban violated fundamental rights, but the Supreme Court reinstated it in 2013 after religious groups successfully appealed.