Bagsecg was killed at the Battle of Ashdown along with his earls. As a result, many of the Vikings returned to northern England, where Jorvic had become the centre of the Viking kingdom, but Alfred of Wessex managed to keep them out of his country. Alfred and his successors continued to drive back the Viking frontier and take York. A new wave of Vikings appeared in England in 947, when Eric Bloodaxe captured York. In 1003, the Danish King Sweyn Forkbeard started a series of raids against England to avenge the St. Brice's Day massacre of England's Danish inhabitants, culminating in a full-scale invasion that led to Sweyn being crowned king of England in 1013. Sweyn was also king of Denmark and parts of Norway at this time. The throne of England passed to Edmund Ironside of Wessex after Sweyn's death in 1014. Sweyn's son, Cnut the Great, won the throne of England in 1016 through conquest. When Cnut the Great died in 1035 he was a king of Denmark, England, Norway, and parts of Sweden. Harold Harefoot became king of England after Cnut's death, and Viking rule of England ceased. The Viking presence declined until 1066, when they lost their final battle with the English at Stamford Bridge. The death in the battle of King Harald Hardrada of Norway ended any hope of reviving Cnut's North Sea Empire, and it is because of this, rather than the Norman conquest, that 1066 is often taken as the end of the Viking Age. Nineteen days later, a large army containing and led by senior Normans, themselves mostly male-line descendants of Norsemen, invaded England and defeated the weakened English army at the Battle of Hastings. The army invited others from across Norman gentry and ecclesiastical society to join them. There were several unsuccessful attempts by Scandinavian kings to regain control of England, the last of which took place in 1086. In 1152, Eystein II of Norway led a plundering raid down the east coast of Britain. Ireland In 795, small bands of Vikings began plundering monastic settlements along the coast of Gaelic Ireland. The Annals of Ulster state that in 821 the Vikings plundered Howth and "carried off a great number of women into captivity". From 840 the Vikings began building fortified encampments, longphorts, on the coast and overwintering in Ireland. The first were at Dublin and Linn Duachaill. Their attacks became