NEW DELHI — Hundreds of gay rights activists and supporters, many wearing colorful costumes and holding balloons, marched through India's capital on Sunday in celebration but also defiance in a nation that continues to outlaw homosexual acts.

As people chanted and marched to the beat of drums during New Delhi's 10th annual Queer Pride march, many said they were frustrated with the law but also hoped it would soon change.

A participant wears a pollution mask as gay rights activists and their supporters march during a gay pride parade in New Delhi, India, Sunday, Nov. 12, 2017. AP

Tish Anand wore a wig that he said was inspired by the Disney Channel character Hannah Montana. He said he would sing and dance, as long as he didn't trip over his heels, but was frustrated with authorities.

The Morning Rundown Get a head start on the morning's top stories. This site is protected by recaptcha

"I don't understand why they criminalized love," he said. "Duh. They are jerks."

Manak Matiyani, one of the organizers, said his wealth and education allowed him to live as openly gay but it was much harder for those with less privilege.

"We're fighting for the right of everybody in this country to live as an equal citizen, which means that everybody should be able to live their life the way they want to," he said.

Indian law makes gay sex punishable by up to 10 years in prison.

Matiyani said the law is often used by the police and community members to threaten people or extort money from them.

An Indian supporter of the lesbian, gay, bisexual, transgender (LGBT) community takes part in a pride parade in New Delhi on November 12, 2017. SAJJAD HUSSAIN / AFP - Getty Images

In 2009, the New Delhi High Court declared the law unconstitutional. But that was overturned four years later when India's Supreme Court decided it should be a decision for the parliament, not the judiciary. Last year, the top court said it would reconsider its decision.

Over the past decade, homosexuals have gained some degree of acceptance in India, especially in big cities. Many bars have gay nights, and some high-profile Bollywood films have dealt with gay issues.

But being gay is still seen as shameful in most of the country, and many homosexuals remain closeted.