Hegazi was among a group of others arrested for waving a rainbow flag in support of LGBT rights.[21] She was charged with joining an organization to contravention the law to incite acts of immorality or debauchery.[2] Her arrest coincided with Egypt's zero-tolerance crackdown response to end public support for LGBT rights in the country.[22] She was jailed for three months at Sayeda Zeinab police station where male agents incited inmates to beat her, and verbally and sexually assault her.[4][23] In an article published by Mada Masr on September 24, 2018, Hegazi recounted her arrest.