Flyg became an important leader of the Communist Party, wrote books and went on political trips to the Soviet Union. In the general election of 1928, with the Flyg-dominated Communists cooperating with the dominant Social Democratic Party, he failed to achieve an influential position as voters failed to show substantial support for a Communist-Social Democratic coalition. In 1929 Flyg, along with the majority of the party's membership, was accused of insufficient loyalty to the Soviet-dominated Comintern and expelled from the party. The same year Flyg and Kilbom founded a new, parallel Communist Party, which claimed to be the real Communist Party of Sweden.
Initially Flyg and Kilbom attempted to reconcile with the Comintern, something that soon proved fruitless. Flyg and Kilbom who supported Nikolai Bukharin and his Right Opposition, gradually developed an animosity towards Stalinism. By 1934 the party had changed name to the Socialist Party (Socialistiska partiet). At first, the Socialist Party still supported the Soviet Union but condemned the Stalinist leadership. But by the end of the 1930s, the party had changed its view and criticized the whole of the Soviet Union, a stance that gradually developed to a foreign policy embracing Nazi Germany.
In 1937 Kilbom was expelled from the party after a few years of disputes and personal struggle between the two leaders. After the expulsion of Kilbom a majority of the members of the party left. The Socialist Party shrank dramatically and Flyg became more and more politically isolated.
At the beginning of World War II, Flyg came out in opposition to fascism, and the Nazi-Soviet pact in his eyes proved that Stalinism was just as bad as fascism. But when Hitler broke the pact with Stalin, and Germany launched the invasion against the Soviet Union, Flyg decided that he had to support the Nazis against Stalin, hoping it would lead to the end of Stalinism.[2] Financial constraints led him to approach the German High Commission in Stockholm.[citation needed] Initially, the Germans turned down his request for funding, but in the final stages of the war (when the Germans felt a more urgent need for allies in the Swedish politics) funding was granted.[citation needed] Gradually, Flyg and his party developed a pro-Nazi position.
Still, Nils Flyg never fully gave in to Hitlerism.[2][3] He was neither an adherent of core fascist or racist policies, and considered himself a socialist until his death.[citation needed] He was against capitalism and imperialism and openly supported the basic ideas of Marx and Lenin. In one speech to a group of Swedish Nazis, he caused confusion when he declared: "Death to communism! Long live communism!"[citation needed]
Flyg killed himself in 1943 due to increasing heart problems.[4][5]