Two gay men are to be publicly lashed 85 times each under sharia law after being filmed by vigilantes in Indonesia.

An Islamic court in the province of Aceh passed down its first sentence for homosexuality on the International Day Against Homophobia and Transphobia, in spite of international appeals to spare the couple.

One of the men wept as the punishment was read out and pleaded for leniency from the panel of three judges.

But the chief prosecutor, Gulmaini, who goes by one name, said the pair would be caned next week ahead of the start of the Islamic holy month of Ramadan.

Lead judge Khairil Jamal claimed they were “legally and convincingly proven to have committed gay sex” but said the panel decided against imposing the maximum 100-lash sentence because the men were polite in court, cooperated with authorities and had no previous convictions.

“As Muslims, the defendants should uphold the sharia law that prevails in Aceh,” he added.

Prosecutors had requested a slightly lower sentence of 80 lashes each and claimed the couple waived their right to defence lawyers.

Human Rights Watch condemned the decision, following growing alarm about attacks on minorities and fears for diversity and pluralism in Indonesia.

LGBT+ rights around the globe Show all 9 1 /9 LGBT+ rights around the globe LGBT+ rights around the globe Russia Russia’s antipathy towards homosexuality has been well established following the efforts of human rights campaigners. However, while it is legal to be homosexual, LGBT couples are offered no protections from discrimination. They are also actively discriminated against by a 2013 law criminalising LGBT “propaganda” allowing the arrest of numerous Russian LGBT activists. AFP/Getty LGBT+ rights around the globe Brunei Brunei recently introduced a law to make sodomy punishable by stoning to death. It was already illegal and punishable by up to 10 years in prison AFP/Getty LGBT+ rights around the globe Mauritania Men who are found having sex with other men face stoning, while lesbians can be imprisoned, under Sharia law. However, the state has reportedly not executed anyone for this ‘crime’ since 1987 Alamy LGBT+ rights around the globe Sudan Both male and female same-sex sexual activity is illegal under Sudanese law. Men can be executed on their third offence, women on their fourth Getty LGBT+ rights around the globe Saudi Arabia Homosexuality and gender realignment is illegal and punishable by death, imprisonment, whipping and chemical castration Getty LGBT+ rights around the globe Yemen The official position within the country is that there are no gays. LGBT inviduals, if discovered by the government, are likely to face intense pressure. Punishments range from flogging to the death penalty Getty LGBT+ rights around the globe Nigeria Both male and female same-sex sexual activity is illegal and in some northern states punishable with death by stoning. This is not a policy enacted across the entire country, although there is a prevalent anti-LGBT agenda pushed by the government. In 2007 a Pew survey established that 97% of the population felt that homosexuality should not be accepted. It is punishable by 14 years in prison Reuters LGBT+ rights around the globe Somalia Homosexuality was established as a crime in 1888 and under new Somali Penal Code established in 1973 homosexual sex can be punishable by three years in prison. A person can be put to death for being a homosexual Reuters LGBT+ rights around the globe Iraq Although same-sex relationships have been decriminalised, much of the population still suffer from intense discrimination. Additionally, in some of the country over-run by the extremist organisation Isis, LGBT individuals can face death by stoning Getty

“These young men are two Indonesians who wanted nothing more than to live their lives and have their privacy respected,” said Kyle Knight, an LGBT rights researcher at Human Rights Watch.

“Now they await a public flogging.”

The men, aged 20 and 23, met at a rented flat in the city of Banda Aceh on 28 March, unaware they were being watched by vigilantes who barged in three hours later.

Footage that was later used as evidence for the prosecution showed to invaders calling the men “dogs” as they filmed them and called the local sharia police.

One naked man is clearly visibly distressed as he calls for help on his mobile phone, while another is repeatedly pushed by a vigilante preventing them from fleeing, begging: “Please brother, please stop… my parents want to talk to you, they can pick me up.”

Aceh’s sharia code allows up to 100 lashes for “morality” offences including adultery, gambling, drinking alcohol, women who wear tight clothes and men who skip Friday prayers.

The punishment was imposed on 339 people in 2016, despite being recognised as torture under international law.

Aceh is the only province in Indonesia to practice sharia law brought in two years ago as a concession made by the national government in 2006 to end a war with separatists.

Reforms allow members of the public as well as the special sharia police to publicly identify and detain anyone suspected of violating its rules, which specifically outlaw liwath (sodomy) and musahabah (lesbian sex).

Two men, accused of having sex in contravention of sharia law, appear in court in Banda Aceh on 10 May (AFP/Getty) (AFP/Getty Images)

They have seen several LGBT suspects detained, including two teenage girls arrested in 2015 on suspicion of being lesbians after embracing in public, as the state parliament has gradually adopted hardline laws to criminalise women who do not wear headscarves, drinking alcohol, gambling, and extramarital sex.

Homosexuality is not illegal elsewhere in Indonesia but a case before the country’s Constitutional Court is seeking to criminalise consensual same-sex relations and sex outside marriage.

Local government officials have been accused of stoking homophobia with inflammatory statements, including a deputy mayor’s claim that the LGBT community is a “threat” and must be “trained to return to a normal life”.

Reports of homophobic attacks in Indonesia have increased since the start of 2016, raising alarm at the UN with police raids, crackdowns on LGBT activists and political rhetoric, despite public denouncements of discrimination by President Joko Widodo.

Government institutions including the National Broadcasting Commission and the National Child Protection Commission have also issued censorship directives banning information and broadcasts that portrayed the lives of LGBT people as “normal”, similar to Russia’s “gay propaganda law”.

The country’s reputation for practicing a moderate form of Islam has been damaged in the past year due to attacks on religious minorities, a surge in persecution and a polarising election campaign for Jakarta governor that highlighted the growing strength of fundamentalist groups.

Basuki “Ahok” Purnama, the outgoing governor of Jakarta and a member of the city’s Christian minority, was sentenced to two years prison for allegedly blaspheming the Quran earlier this month.

There are growing fears that Islamists including the extremist Islamic Defenders Front are in the ascendancy in a country home to sizeable communities of Hindus, Christians, Buddhists and other minorities.

As well as home-grown groups, Indonesia is among the Asian nations targeted for expansion by Isis, which launched an attack in Jakarta in January 2016.