INDIA’S top court has struck down a colonial-era law that makes homosexual acts punishable by up to 10 years in prison.

The court gave its ruling Thursday on a petition filed by five people who challenged the law, saying they are living in fear of being harassed and prosecuted by police.

In 2009, a New Delhi High Court declared unconstitutional Section 377 of the law, which says intercourse between members of the same sex is against the order of nature. But the judgment was overturned by the Supreme Court, which says amending or repealing the law should be left to Parliament.

But the Government left it to the court to decide the validity of the law dealing with consensual sexual acts between two adults.