CAIRO — Egyptian security forces raided a bathhouse and arrested 25 men suspected of homosexuality, dragging them naked out of the building in downtown Cairo, an official said Monday.

The raid is part of an ongoing crackdown on gay men and comes after an Egyptian court last month convicted eight men on charges of “inciting debauchery” following their appearance in an alleged same-sex wedding party on a Nile boat, sentencing each to three years’ imprisonment.

Egyptian law does not explicitly prohibit consensual same-sex relations but prosecutes and imprisons gay men on charges such as “debauchery” and “shameless public acts.”

The raid on the bath house, or hammam, took place on Sunday in the city’s Ramses neighborhood, said the official, speaking on condition of anonymity because he was not authorized to speak to media. He said the bathhouse owner, an unidentified 60-year-old man, was suspected of renting the place out specifically to homosexuals.

Homosexuality is a social taboo in Egypt, a conservative, Muslim majority country with a sizable Christian minority. Same-sex marriage is unheard of and only in recent years have fiction and movies included gay characters.

The crackdown on homosexuals, and also on atheists, goes hand in hand with a wider campaign against all forms of dissent, both by liberal and Islamist political groups.

In April, four men were convicted and sentenced to eight years in prison each for “debauchery” after allegedly holding parties that involved homosexual acts and where women’s clothing and makeup were found.

In 2001, Egypt made headlines around the world when 52 men were arrested in a police raid on a Nile boat restaurant and accused of taking part in a gay sex party. After a highly publicized trial in an emergency state security court, 23 of the men were convicted and sentenced to prison terms of one to five years for immoral behavior and contempt of religion.