Police officer escorts two men accused of having gay sex into a holding cell to wait for the start of their trial at Shariah court in Banda Aceh, Indonesia, Wednesday, May 17, 2017. A Shariah court in Indonesia's conservative Aceh province has sentenced two gay men to public caning for the first time, further tarnishing the country's moderate image after a top Christian politician was imprisoned for blasphemy. (AP Photo/Heri Juanda)

Police officer escorts two men accused of having gay sex into a holding cell to wait for the start of their trial at Shariah court in Banda Aceh, Indonesia, Wednesday, May 17, 2017. A Shariah court in Indonesia's conservative Aceh province has sentenced two gay men to public caning for the first time, further tarnishing the country's moderate image after a top Christian politician was imprisoned for blasphemy. (AP Photo/Heri Juanda)

BANDA ACEH, Indonesia (AP) — An Islamic Shariah court in Indonesia’s conservative Aceh province has sentenced two gay men to public caning for the first time, further undermining the country’s moderate image after a top Christian politician was imprisoned for blasphemy.

The court, whose sentencing Wednesday coincided with International Day Against Homophobia and Transphobia, said the men, aged 20 and 23, would each receive 85 lashes for having sexual relations. One of the men wept as his sentence was read out and pleaded for leniency.

ADVERTISEMENT

The chief prosecutor, Gulmaini, who goes by one name, said they will be caned next week, before the holy Muslim month of Ramadan starts about May 25.

The couple was arrested in late March after neighborhood vigilantes in the provincial capital, Banda Aceh, suspected them of being gay and broke into their rented room to catch them having sex. Cellphone video that circulated online and formed part of the evidence shows one of the men naked and visibly distressed as he apparently calls for help on his cellphone. The second man is repeatedly pushed by another man who is preventing the couple from leaving the room.

The lead judge, Khairil Jamal, said the men were “legally and convincingly proven to have committed gay sex.”

He said the three-judge panel decided against imposing the maximum sentence of 100 lashes because the men were polite in court, cooperated with authorities and had no previous convictions.

“As Muslims, the defendants should uphold the Shariah law that prevails in Aceh,” Jamal said.

International human rights groups described the treatment of the men as abusive and humiliating and called for their immediate release.

“Every human being has a right to privacy, a right to enter consensual relations, and a right to physical protection,” Amnesty International’s deputy director for Southeast Asia and the Pacific, Josef Benedict, said in a statement.

Human Rights Watch said in April that public caning would constitute torture under international law.

“The prosecution is very harsh. The verdict is harsher,” said Andreas Harsono, Indonesia researcher for Human Rights Watch. “It shows the increasingly conservative judiciary in Indonesia.”

The U.S. State Department said that all people are equal in dignity and rights, regardless of sexual orientation.

ADVERTISEMENT

“We encourage Indonesia and all nations to provide equal protection to all their citizens and to conform to international human rights standards. We maintain that caning, as described in our human rights report, is an extreme form of punishment,” said Anna Richey-Allen, a department spokeswoman for East Asia.

Prosecutors said the men had waived their right to defense lawyers. It was not clear why, but guilty verdicts are certain in most cases that reach the Shariah court.

Aceh is the only province in Muslim-majority Indonesia allowed to practice Shariah law, which was a concession made by the national government in 2006 to end a war with separatists, but other some other areas have introduced Shariah-style bylaws.

Aceh implemented an expansion of Islamic bylaws and criminal code two years ago that extended Shariah law to the province’s non-Muslims and allows up to 100 lashes for morality offenses including gay sex and sex between unmarried people.

Human Rights Watch says the Aceh laws violate the International Covenant on Civil and Political Rights, which Indonesia ratified in 2005.

Caning is also a punishment in Aceh for gambling, drinking alcohol, women who wear tight clothes and men who skip Friday prayers. More than 300 people were caned for such offenses last year.

Homosexuality is not illegal elsewhere in Indonesia but a case before the country’s top court is seeking to criminalize gay sex and sex outside marriage.

Indonesia’s reputation for practicing a moderate form of Islam has been battered in the past year due to attacks on religious minorities, a surge in persecution of gays and a polarizing election campaign for governor of the capital, Jakarta, that highlighted the growing strength of hard-line Islamic groups.

Earlier this month, the outgoing Jakarta governor, a minority Christian, was sentenced to two years in prison for campaign comments deemed as blaspheming the Quran.

___

Wright reported from Jakarta, Indonesia. Associated Press writer Niniek Karmini in Jakarta and Matthew Pennington in Washington contributed to this report.