On 20 March 2003, he attended a demonstration in Tahrir Square protesting the US invasion of Iraq and was allegedly beaten by Egyptian security forces dispersing the rally. On 22 March, el-Hamalawy was arrested by four plainclothes security officers while leaving a restaurant in Cairo. He was detained with other youth activists at al-Gamaliyya Police Station and was released shortly afterward.