 His life in Al-Azahar constituted Gely ideas about the oppression and the social inequity, when most of Al-Azahar students at that time (1940s) came from different African countries and resided in unhealthy accommodation conditions which led in many cases to students being afflicted by tuberculosis and dying because of that.Gely had been arrested when he contributed a student demonstration when he was a student in Al-Azhar.After finishing his secondary education, Gely while studying in Dar El Uloum worked as editor in one of the Egyptian newspapers.