Following the invasion of Norway on April 9, 1940, the Norwegian government fled north to avoid German capture. At Dovre was the crossroads between the route to Åndalsnes on the coast and the main north–south route between Oslo and Trondheim.