Seven young men in the Indian city of Bangalore may have become the first to be charged over having gay sex since India’s Supreme Court reinstated Section 377 of the country’s Criminal Code.

Section 377 punished sexual acts that go ‘against the order of nature,’ and the law was struck down by the High Court of Delhi in 2009 – only to be reinstated in December of last year by the Supreme Court.

According to the Pune Mirror, the unnamed 52-year-old doctor first met one of the men when he came to install a television receiver dish on his house.

The doctor, who is married with children, allegedly made a pass at him and the dish installer decided to respond positively to it.

The man later told six friends about the doctor, and about a month ago, four of them showed up unannounced at the doctor’s home.

The doctor let them in and two of the men had sex with the doctor while two others watched, secretly filming them.

The other two men also allegedly began a sexual relationship with the doctor.

However once they had finished with him, the men showed the recording to the doctor and demanded he pay up or they said they would give the video to the police and the media.

The doctor agreed to pay them 500,000 rupees (about $US8,300) to stay quiet.

However the men and three other friends returned to the doctor’s house two weeks later wearing disguises and told the doctor that they were police who had brought a journalist with them to expose him.

The men threatened to out the doctor and he agreed to pay them a further 1,100,000 rupees (around $US18,300).

The gang then distributed the money amongst themselves and splurged on luxury hotels and expensive clothes and gadgets.

However after this second successful extortion attempt the doctor decided to go to the police himself, fearing the video might fall into the wrong hands and still be made public.

Police arrested and charged the seven men for having ‘unnatural’ sex and for extortion. The doctor has not been charged yet as he is the complainant but police say he will be charged under Section 377 as well if it is found he had consensual sex with the men.

Under Section 377 the men and the doctor could be jailed for up to ten years and also given heavy fines.