Three men in Morrocco accused of homosexuality have been jailed for three years each.

According to the Moroccan Association of Human Rights (AMDH), the men were sentenced on Friday to three years in jail at a court in the city of Taourirt, after being accused of homosexuality.

Two of the men were apparently “caught in the act” at the workshop of one of them, a mechanic.

They were caught after a tip off to police, Hassan Ammari of the AMDH said.

According to Ammari, the two men then implicated a friend they had met through, who was also arrested and apparently admitted having gay sex.

Same-sex sexual activity is a crime in Morocco, with a maximum possible sentence of 3 years.

Ray Cole, a gay British man, was briefly jailed in the country last year under Morocco’s anti-gay laws.

Mr Cole and his Moroccan friend were subsequently released following a high-profile campaign.

Moroccan law penalises what it refers to as acts of “sexual deviancy” between members of the same sex, a term that police reports and court documents use to refer to homosexuality more generally.

Campaigners earlier this year condemned the jailing of two men accused of consensual same-sex activity in Morocco.