The Supreme Court in India has restored a 19th century law which criminalises homosexuality, setting aside an earlier landmark verdict.
In its ruling, the court said homesexuality was an issue in which the court should not intervene and it was up to Parliament to legislate on the issue.
According to Section 377, a colonial law passed 153 years ago, a same-sex relationship is an "unnatural offence" and punishable by 10 years in prison.
The BBC reports homosexuality is a taboo in India where many people still regard same-sex relationships as illegitimate.
Although the law has rarely - if ever - been used to prosecute anyone for consensual sex, correspondents say it has often been used by the police to harass homosexuals.
Law Minister Kapil Sibal said the government would respect the ruling but did not say whether there were plans to amend the law. Correspondents say any new legislation is unlikely soon - general elections are due next year.