Gaylani was not to stay long in Iran. On 25 August 1941, British and Soviet forces invaded Iran and removed Reza Shah from power. Gaylani then fled to Italy. Later he was received by German dictator Adolf Hitler in Berlin, and he was recognized as the leader of the Iraqi government in exile. Upon the defeat of Germany, Gaylani again fled and found refuge, this time in Saudi Arabia.