Sweyn Forkbeard all England in 1016, following the deaths of Æthelred and his son Edmund Ironside; he succeeded his brother as King of Denmark in 1019 and eventually also ruled Norway, parts of Sweden, Pomerania, and Schleswig. Cnut and his sons, Harold Harefoot and Harthacnut, ruled England over a combined 26-year period (1016–1042). After Harthacnut's death, the English throne reverted to the House of Wessex under Æthelred's younger son Edward the Confessor (reigned 1042–1066). Sweyn's daughter, Estrid Svendsdatter, was the mother of King Sweyn II of Denmark. Her descendants continue to reign in Denmark to this day. One of them, Margaret of
Cnut the Great fell into a period of disorder with a power struggle between the pretender to the throne Sweyn Estridsson, son of Ulf, and the Norwegian king, until the death of Magnus in 1047. The inheritance of England was briefly to return to its Anglo-Saxon lineage. The house of Wessex reigned again as Edward the Confessor was brought out of exile in Normandy and made a treaty with Harthacnut, his half-brother. As in his treaty with Magnus, it was decreed that the throne would go to Edward if Harthacnut died with no legitimate male heir. In 1042, Harthacnut died, and Edward was