The Dano-Norwegian union lasted until 1814, when the Treaty of Kiel decreed that Norway (except for the Faroe Islands, Iceland, and Greenland) be ceded to Sweden. The treaty however, was not recognised by Norway, which successfully resisted the attempt in the 1814 Swedish–Norwegian War. Norway thereafter entered into a much looser personal union with Sweden as one of two equal kingdoms until 1905, when that union was dissolved and both kingdoms became independent. "See History"