An Egypt court has acquitted 26 men who were arrested for "debauchery" after a raid on a Cairo hammam (bathouse).
Reporters at the scene said the courthouse erupted in a roar of joy after the Cairo court found the men innocent. If they were convicted, they would have faced one to nine years in jail.
The case sparked an uproar among activists and human rights group after pictures of the arrested men being loaded on trucks half-naked were broadcasted by pro-government al-Qahira wal Nas news channel.
Homosexuality is not explicitly banned in Egypt, so the men were arrested in connection with the charge of "perversion" or "debauchery" instead.
Along with police were Central Security forces, an army forces formed of raw recruits.
General Ali al-Demerdash, head of the Cairo security directorate, said the men were arrested in "a common public bathhouse in the Azbakeya neighborhood of Cairo for practising debauchery".
A journalist working for the pro-government TV, Mona Iraqi, was reportedly tipped off about the raid and entered the hammam ahead of the arrival of security forces.
After the incident, she boasted on her Facebook page of an exclusive on "the biggest den of group perversion in the heart of Cairo," according to a translation by renowned LGBT activist Scott Long. The journalist said the full programme will be shown on Wednesday with the "whole story of the dens for spreading Aids in Egypt".
The arrests were just the latest episode in Egypt's growing crackdown on LGBT people in the country. In September, seven Egyptian men were arrested and accused of debauchery after appearing in a gay wedding video which was posted online.
The video – which appears to show a group of men celebrating a mock gay wedding on a Nile riverboat –was recorded in April but posted on YouTube only in August.
According to the public prosecutor, the images of the footage were "humiliating, regrettable and would anger God," and "constituted a criminal act".
But the latest case appears to be even more high-profile than the "gay wedding video", according to Scott Long.
"What's clear is that another pro-Sisi media organ is working in close collusion with security forces, to produce a sensational show about sex with appalling and terrifying images, to invade privacy and engorge the prisons and destroy innocent people's lives," he wrote on his blog A Paper bird.
In October, gay rights supporters organised an online campaign to protest against the Egyptian government's persecution of homosexuals.