His relationship with Gamal Abdel Nasser began when he lived in the same building that Gamal Abdel Nasser inhabited in Abbasiya before the July 23 movement. They had family relations, and in addition to being officers teachers in the School of Administrative Affairs, they met on a daily basis. Jamal Abdel Nasser opened it to the Free Officers in 1951, and Al-Shazly welcomed the idea and joined them, but he did not participate in the night of July 23, 1952 directly, as he was in a college course Pillars of the war.