Czechoslovakia was annexed by Germany in 1938–1939, and had an anti-German government-in-exile during the Second World War. On 9 April 1940 Norway was invaded by Germany too, and joined the Allies of World War II with its government fleeing the country. The alliance was formalised in the "Declaration by United Nations" on 1 January 1942, with Czechoslovakia and Norway as signatories.