1940s
The Second World War (1939–1945) was a difficult time for the SKP. The party was the sole political force in Sweden supporting the Soviet Union in the Winter War, which was frequently used as a pretext for the repression against the party. The SKP also supported Soviet military expansion along its Western border. Ny Dag, the main party organ, wrote on 26 July: "The border states have been liberated from their dependence on imperialist superpowers through the help of the great socialist worker's state."
Moreover, the party supported the Molotov–Ribbentrop Pact. The Central Committee adopted a declaration in September 1939, which read: "The ruling cliques in England and France have, in fear of Bolshevism, in their badly hidden sympathy for Fascism, in fear of workers' power in Europe, refused to enter into an agreement with conditions acceptable to the Soviet Union to effectively crush the plans of the warmongers. They have supported the Poland's refusal to accept Soviet help. The Soviet Union has thus, in clear accordance with its consequent policy of peace, through a non-aggression pact with Germany, sought to defend the 170 million people of the first socialist state against Fascist attacks and the bottomless misery of a world war."
When Nazi Germany invaded Norway in April 1940, the SKP took a neutral stance. In an article in Ny Dag, the German takeover in Norway was described as a "setback for British imperialism".
Following orders by the German delegation in Stockholm, the Swedish government took several repressive measures against the party. The main publications were effectively proscribed (they were banned from transportation, meaning it was illegal to carry SKP newspapers in any form of vehicle). Key cadres of the party and youth league were detained in camps, officially as a part of their military service. In total, 3500 people were interned at ten different camps, the great majority of them communists. Many party activists went underground, including the chairman. A complete ban on the party was discussed in government circles, but never came into effect.
In 1940, the office of the regional party organ in Norrbotten, Norrskensflamman, was bombed. Five people, including two children, were killed. This constitutes the deadliest terrorist act committed in Sweden in the twentieth century. One of the financial supporters of the group behind the attack, Paul Wretlind, was a regional leader of the Liberal Party in Stockholm.
During the war, the largest co-ordinated police action in Swedish history took place against the party. 3,000 policemen took part in raids on party offices and homes of party members all over the country. However, the raids failed to produce any evidence of any criminal activity by the party.
The party actively supported resistance struggles in Norway and Denmark. In northern Sweden, party-affiliated workers stole dynamite from mines and smuggled them to the Norwegian resistance. In other parts, the party gave shelter to anti-fascist refugees.
As the military fortunes of the Third Reich waned, the party regained a strong position in Swedish politics. In the parliamentary elections of 1944, SKP got 10.3% of the vote.
In 1945, there was a nationwide metal workers' strike, led by SKP.
In the 1946 municipal elections, the SKP received 11.2% of the vote. Party membership reached its historical peak, at 51,000. These developments, along with developments in the international arena and new Soviet policies of peaceful co-existence, led the party to initiate a re-adjustment of its role in Swedish politics. The electoral gains strengthened the perception that the party would be able to come to power within the parliamentary framework. Likewise, the idea of a "united front" with the Social Democrats gained ground in intra-party debates. The party's trade union policy was changed to adopt a less combative position towards social democracy within the trade union movement. These changes met with some resistance in the party ranks.
However, the onset of the Cold War became a difficult challenge to the party. The electoral gains of the post-war years would not last long. The prime minister Tage Erlander declared his intention to turn "every trade union into a battlefield against the communists". Communists were purged from the trade union movement. However, the party continued its development of the united front strategy.