A doctor has been jailed in Egypt for gay sex.

The man, who has not been named, was sentenced to one year in prison with labor by a Cairo court on the accusation of ‘practicing homosexual activity,’ reported local newspaper Youm7.

According to the report, the doctor was arrested after the morality police were tipped off to a WhatsApp group he had allegedly created to attract men who ‘want to practice immorality.’

Homosexuality is not specifically outlawed in Egypt, but gay men are often charged under vague public morality laws with punishments of up to 17 years imprisonment with or without hard labor.

At least 150 LGBTI people have been arrested in the Muslim-majority country since the military government took power in 2013, and there have been reports of police ‘hunting’ gay men on hookup apps such as Grindr.

A gay man was arrested last month after police claimed to have found an ad he had posted online looking for sex with other men.