In 1910, Nygaardsvold was elected to the board of education for the Labour Party, and rose quickly through the ranks in local politics. In 1916, he was elected to the Norwegian parliamentfor the first time, serving continuously until 1949. He worked as a labourer in the Swedish lumber industry during the summers in the first few years. From 1920 to 1922 he served as the mayor for his home town of Malvik. In 1928, Nygaardsvold was appointed minister of agriculture in the short-lived Christopher Hornsrud cabinet. From 11 January 1934 to 20 March 1935 he served as President of the Storting. In 1935, Nygaardsvold was asked to form a government as Prime Minister of Norway. He was serving as Prime Minister when Nazi Germany attacked on Norway 9 April 1940. Following the German occupation of Norway, German officials demanded that the Government headed by Nygaardsvold capitulate and that the King appoint a government headed by Nazi sympathiser Vidkun Quisling. King Haakon VII stated that he could not comply with the German ultimatum and would rather abdicate than appoint Quisling prime minister. On 7 June 1940, the Norwegian Government-in-exile relocated to London. Nygaardsvold continued as prime minister in exile until the government returned to Norway on 31 May 1945. He resigned on 25 June 1945 when King Haakon appointed Einar Gerhardsen to head an interim government composed of all political parties. A number of progressive reforms were instituted during Nygaardsvold's time as prime minister. The Old Age Insurance Law of July 1936, for instance, introduced national pension insurance, while the Unemployment Insurance Law of June 1938 introduced compulsory unemployment insurance for all employees and workers outside the primary sector “who were compulsorily insured under the sickness insurance scheme; means-tested benefits; those with incomes above or below certain levels not entitled to benefits.” Johan Nygaardsvold was elected to the Storting for the last time in the autumn of 1945. At the end of the Storting term in 1949, he retired from politics. That same year, he was awarded the Medal for Outstanding Civic Service. He returned to Hommelvik and died of cancer in Trondheim in 1952. He was buried at Hommelvik Church in Malvik.
Historical legacy
During his time in office, Nygaardsvold had immense popular appeal and was given credit for the Labour Party's election results in 1933. Nygaardsvold was the prime minister in the second Labour Party cabinet in Norway, after he helped formulate the so-called "crisis accord" with the Farmers' Party. His government's domestic policy was largely dedicated to recovering from the Great Depression, but it is most noted for its foreign and military policy in the years leading up to the occupation of Norway by Nazi Germany and his administration in exile from 1940 to 1945. The investigative commission that issued a report after the liberation of Norway found that he could not be absolved from responsibility for the lack of operational readiness for the German invasion, but gave him credit for his management of a unity government in exile. He was awarded an honorary salary for his service in exile, but refused to accept it.