MALAYSIAN prime minister Mahathir Mohamad has attacked the public caning of two Muslim women for attempting to have sex, saying it tarnished Islam’s reputation as a merciful and compassionate religion.

The unnamed women, aged 22 and 32, were each struck with a cane six times.

The decision was called a form of torture by MPs and rights groups.

Mahathir broke his silence after Monday’s rare whipping of the two women, witnessed by more than 100 people.

Mahathir said the caning “did not reflect the justice or compassion of Islam”.

In a video on social media, he said that the women could have been given a lighter sentence and counselling because it was their first offence.

Islamic officials defended the caning, saying it was not meant to hurt the women, but was intended to educate them so they will repent.