Section 377 of the Indian Penal Code introduced in 1861 criminalized homosexual activities. In 2009, the Delhi High Court decriminalized homosexuality but in 2012 the Supreme Court overturned this ruling and left changes to Section 377 up to Parliament. Finally, in 2018 the Supreme Court ruled Section 377 unconstitutional insofar as it criminalized consensual homosexual acts between adults in private.