Kingdom of England unity ever since. During the reign of Æthelred the Unready (978–1016), a new wave of Danish invasions was orchestrated by Sweyn I of Denmark, culminating after a quarter-century of warfare in the Danish conquest of England in 1013. But Sweyn died on 2 February 1014, and Æthelred was restored to the throne. In 1015, Sweyn's son Cnut the Great (commonly known as Canute) launched a new invasion. The ensuing war ended with an agreement in 1016 between Canute and Æthelred's successor, Edmund Ironside, to divide England between them, but Edmund's death on 30 November of that year left England united
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