After a national referendum confirmed the people's preference for a monarchy over a republic, the Norwegian government offered the throne of Norway to Prince Carl of Denmark, and Parliament unanimously elected him king, the first king of a fully independent Norway in 586 years.