Following the 1938 integration of Austria into Nazi Germany, Maršálek fled to Prague to dodge the draft but remained politically active in the Social Democratic expat community. After the German occupation of Czechoslovakia in 1939, he joined the communist resistance. For the next two years, his main activity was helping German and Austrian dissidents flee the Reich.