The peace following the Treaty of Wedmore lasted until 884, when Guthrum again attacked Wessex. Alfred defeated him, with peace codified in the Treaty of Alfred and Guthrum. The treaty outlined the boundaries of the Danelaw and allowed for Danish self-rule in the region. The Danelaw represented a consolidation of power for Alfred; the subsequent conversion of Guthrum to Christianity underlines the ideological significance of this shift in the balance of power.
Edward the Elder and his sister, Æthelflæd, the Lady of the Mercians, conquered Danish territories in the Midlands and East Anglia in a series of campaigns in the 910s, and some Danish jarls who submitted were allowed to keep their lands.
Viking rule ended when Eric Bloodaxe was driven out of Northumbria in 954.