Norway had been a part of Denmark for four centuries and of Sweden for a further century, regaining its complete independence only in 1905, when it broke away from its union with Sweden and the people elected Prince Carl of Denmark as King of Norway.