An Egyptian court has acquitted 26 men who were arrested last month in a raid on a Cairo bathhouse.
The men faced several charges including debauchery and performing indecent acts.
In the original charge the prosecutor said that the owner and staff of the bathhouse, or hamman, ran it as a place for "parties of debauchery, orgies among male homosexuals in exchange for money".
Homosexuality is not illegal in Egypt but the country's prostitution laws are often used for convicting gay men.
The trial made international news after the raid on the bathhouse was filmed and shown on a pro-government TV channel.
"They destroyed our lives, God rescued us," said one of the defendants who would not give his name to protect his privacy.