Edward the Confessor had one full brother, Alfred, and a sister, Godgifu. In charters he was always listed behind his older half-brothers, showing that he ranked behind them. During his childhood, England was the target of Viking raids and invasions under Sweyn Forkbeard and his son, Cnut. Following Sweyn's seizure of the throne in 1013, Emma fled to Normandy, followed by Edward and Alfred, and then by Æthelred. Sweyn died in February 1014, and leading Englishmen invited Æthelred back on condition that he promised to rule 'more justly' than before. Æthelred agreed, sending Edward back with his ambassadors. Æthelred died in April 1016,
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