Section 377 of the Indian Penal Code dating back to the colonial era, criminalizes sexual activities "against the order of nature", which also includes homosexual acts.
Being a gay man in India isn't easy. Many people don't understand that being gay isn't a choice. It's a part of a person's innate self.