Answer
The invasion was primarily motivated by a desire for vengeance following the St. Brice’s Day massacre in 1002, in which Æthelred the Unready ordered the killing of all Danes living in England. Sweyn's invasion was a direct response to this act of aggression and aimed to retaliate against Æthelred and assert Danish power and influence in England.