An Indonesian man - who worked for an organisation that helped draft strict adultery laws - has been publicly whipped after being caught having an affair with a married woman.
Mukhlis bin Muhammad of the Aceh Ulema Council (MPU) was flogged 28 times.
The woman he had the affair with was caned 23 times.
Mukhlis is from the deeply conservative Aceh region, the only place in Indonesia which practises the strict Islamic law, Sharia.
Gay sex and gambling are also punishable by public caning in Aceh.
"This is God's law. Anyone must be flogged if proven guilty, even if he is a member of the MPU," Husaini Wahab, the deputy mayor of Aceh Besar district, where Mukhlis lives, told BBC News Indonesia.
The couple were caught by officials in September, apparently in a car parked near a tourist beach.
The caning happened on Thursday.
Mr Husaini added that Mukhlis would be expelled from the MPU.
The 46-year-old is also an Islamic religious leader.
He is the first religious leader to be publicly caned in Aceh since Sharia law came into force in 2005.
The MPU advises the local government and legislature on drafting and implementing Sharia law in Aceh.
Aceh was granted special rights to introduce its own stricter Islamic laws more than a decade ago.
Laws against homosexuality were passed in 2014 and came into effect the following year.
Extra-marital sex, gambling, and the consumption, production and distribution of alcohol are all illegal under Sharia law.
In 2017, two men were caned 83 times each in Aceh after they were caught having sex.
Canes are typically made from ratan.
Those carrying out the caning have all their body parts, except their eyes, covered to stop them from being identified.
The caning must take place publicly on an open air platform, though children are barred from watching.
Sharia law applies to Muslims and non-Muslims alike in Aceh.Latest Stories
-
GPL 2024/25: Young Apostles hand Samartex first home defeat since March
19 mins -
Unconventional Trump brings openings and perils for Africa
49 mins -
Iseguri Initiative fights teenage pregnancy and early child marriage
1 hour -
‘Dreams quashed’: Foreign students and universities fear Australia’s visa cap
2 hours -
G20 talks in Rio reach breakthrough on climate finance, sources say
2 hours -
2024/25 Ghana League: Bechem United shock Chelsea in Berekum
4 hours -
GPL 2024/25: Nations FC beat Asante Kotoko to go top
4 hours -
GPL 2024/2025: Gold Stars drop to 2nd after 2-0 defeat to Medeama
4 hours -
#GPL 2024/25: Hearts pip Karela in Tamale to move into top 4
4 hours -
Feedback from Klopp, others more valuable than just anybody – Otto Addo to critics
4 hours -
Support us if you want to qualify for the World Cup – Otto Addo to Ghanaians
5 hours -
Defective ballot papers for Ahafo and Volta Regions destroyed by EC
5 hours -
Election 2024: Be fair and transparent – Togbe Afede to EC
5 hours -
AFCON 2025Q: Poor home form cost us – Otto Addo
5 hours -
Togbe Afede criticises recent Supreme Court rulings as uninspiring and illogical
5 hours