He was later a founding member of the Free Officers and was appointed member of the Egyptian Revolutionary Command Council after the 1952 Revolution. During the presidency of Gamal Abdel Nasser he was appointed Minister of Social Affairs in 1954 and later Minister of Education. He led the National Guard to defend Ismailia during the Suez War.In 1964 he resigned from his post as Vice President and minister of local governments. His main reason was the Egyptian intervention in the Yemen War. During Anwar El-Sadat's presidency he was elected in 1971 to the People's Assembly. After criticizing Sadat's government, he was dismissed from the People's assembly in 1978 and therefore also prevented from further elections. In 1983 he made a tour with Yasser Arafat through Arab countries to end hostilities between different Palestinian factions throughout the Arab world.