The Danelaw (/ˈdeɪnˌlɔː/, Danish: Danelagen; Norwegian: Danelagen; Old English: Dena lagu) was the part of England between the late ninth century and the Norman Conquest under Anglo-Saxon rule in which Danish laws applied. The Danelaw originated in the conquest and occupation of large parts of eastern and northern England by Danish Vikings in the late ninth century. The term applies to the areas in which English kings allowed the Danes to keep their own laws following the early tenth-century Anglo-Saxon conquest of Danish ruled eastern and northern England in return for the Danish settlers' loyalty to the English crown. "Danelaw" is first recorded in the early 11th century as Dena lage.
The Danelaw originated from the invasion of the Great Heathen Army into England in 865, but the term was not used to describe a geographic area until the 11th century. With the increase in population and productivity in Scandinavia, Viking warriors, having sought treasure and glory in the nearby British Isles, "proceeded to plough and support themselves", in the words of the Anglo-Saxon Chronicle for 876.