Answer:
They both came into power by overthrowing the already existing government (monarchy)
Step-by-step explanation:
Gamal Abdel Nasser Hussein of Egypt ruled Egypt between 1954 until he died in 1970. He was the second president of Egypt. He led the 1952 overthrow of the already established system of monarchy and enacting reforms in Egypt.
Ruhollah Khomeini who is popularly known as Ayatollah Khomeini was leader of Iran between 1979 and 1989. He ruled as the Supreme leader in Iran, he was also a cleric and scholar. He came to power through the Iranian Revolution overthrowing the last Shah Mohammed Reza Pahlavi. He also ended the Persian monarchy by taking over from the Shah.