Ragnar Lodbrok the Battle of Ashdown on 8 January 871, where Bagsecg was killed. Halfdan accepted a truce from the future Alfred the Great, newly crowned king of Wessex. Halfdan succeeded Bagsecg as King of most of Denmark (Jutland and Wendland) in about 871. Bjorn Ironside became King of Sweden and Uppsala in about 865, (the same year his father Ragnar is said to have died). Bjorn had two sons, Refil and Erik Björnsson. His son Erik became the next king of Sweden, and was succeeded in turn by Erik the son of Refil. Sigurd Snake-in-the-eye became King of Zealand and the
Danes (Germanic tribe) fortified trade settlements, so called longphorts. During the Viking Age, they established many coastal towns including Dublin (Dyflin), Cork, Waterford (Veðrafjǫrðr) and Limerick (Hlymrekr) and Danish settlers followed. There were many small skirmishes and larger battles with the native Irish clans in the following two centuries, with the Danes sometimes siding with allied clans. In 1014 AD, at the Battle of Clontarf, the Vikings were eventually defeated and the remaining Danish settlers gradually assimilated with the Irish population. The first Vikings appeared in Frisia, now part of the Netherlands and Germany, in 800 AD, when Danes plundered coastal settlements and