When the Communist Party was banned in 1940, Walsh went underground and evaded arrest under the wartime Defence of Canada Regulations. Once the Nazis invaded the Soviet Union, the USSR became Canada's ally and Communists were able to organize the new Labor-Progressive Party as a legal front.