Answer
The answer is seven years. After the death of Æthelred, Alfred the Great, King of Wessex, assumed the throne and embarked on a remarkable campaign against the invading Vikings. Through strategic alliances, military prowess, and the implementation of innovative defensive measures, Alfred managed to defeat the Vikings and establish the Danelaw, effectively securing England from further Viking incursions.