Two men have been caned 83 times each in the Indonesian province of Aceh after being caught having sex.
The men stood on stage in white gowns praying while a team of hooded men lashed their backs with a cane, the BBC reported.
The pair, aged 20 and 23, were found in bed together by vigilantes who entered their private accommodation in March. They have not been identified.
Same sex relations are not illegal in most of Indonesia but it is in Aceh, the only province which exercises Islamic law.
It is the first time gay men have been caned under Shariah in the province.
The punishment was delivered outside a mosque in the provincial capital of Banda Aceh.
A large crowd of observers jeered the two men when they appeared and cheered as the caning took place. “Let this be a lesson to you,” one of the men watching cried out. “Do it harder,” another man yelled.
Earlier, an organiser warned the crowd not to attack the men, saying, “they are also human.”
The men were sentenced to 85 strokes but the number was reduced by two because they had spent two months in detention.