Answer
Rákosi spent the majority of World War II in the Soviet Union. He worked closely with the Soviet leadership, including Joseph Stalin, and played a significant role in the formation and activities of the Free Hungarian Movement, an anti-fascist organization dedicated to the liberation of Hungary from Nazi occupation.