An Egyptian court has cleared 26 men arrested after a raid on a bath house in Cairo last month and charged with “inciting debauchery”.
The men were arrested a month after eight men were jailed for appearing in a video alleged to show a gay marriage.
Rights groups have condemned Egypt’s treatment of gay people, in particular the use of anal testing to determine whether people are homosexual.
Though homosexuality is legal in Egypt, it remains a taboo.
Families of those cleared reacted with jubilation in court when the verdict was announced.
The Daily Telegraph’s Louisa Loveluck, who witnessed the trial, said that according to lawyers at least one of the men had been raped while in the custody of Cairo police.
She added that the defendants were standing in a cage, handcuffed together and trying to cover their faces.
At the time of the arrests, local prosecutors said that the bath house owner was “accused of turning the facility into a site of immoral and indecent conduct and group homosexuality”.