During the 10th century, the individual kingdoms unified under the rule of Wessex into the Kingdom of England , which stood opposed to the Danelaw , the Viking kingdoms established from the 9th century in the north and east of England.