achieved hegemony over the entire of Ireland, Flaithbertach launched an invasion of Ulaid, and after destroying Dún Echdach (Duneight, south of Lisburn) and the surrounding settlement, took the submission of the Dál Fiatach, who had the Ulaid kingship, thus removing them from Boru's over-lordship. The next year, Flaithbertach raided the Ards peninsula and took an uncountable number of spoils. At Ulfreksfjord in 1018, a combined force of native Irish, led by a king called Conchobar, and their Norse allies, led by Eyvind Urarhorn, defeated a major Viking expedition launched by the Earl of Orkney, Einar Sigurdsson, who was aiming to re-assert his father's lordship over the seaways between Ireland and Scotland. In 1022, Niall mac Eochaid, the king of Ulaid, inflicted a major defeat on Sigtrygg's Dublin fleet, decimating it and taking its crew captive. Niall followed up this victory in 1026 attacking Finn Gall, a Viking settlement just north of Dublin itself. Sigtrygg's nephew, Ivar Haraldsson, plundered Rathlin Island just off the north coast of Ulaid in 1038 and again in 1045. The latter attack saw Ímar kill Ragnall Ua Eochada, the heir-apparent of Ulaid and brother of Niall mac Eochaid, along with three hundred Ulaid nobles. In retribution Niall again attacked Finn Gall. In 1087, a son of the king of Ulaid, allied with two grandsons Ragnall, attacked the Isle of Man in a failed attempt to oust Godred Crovan, king of Dublin and the Isles. At the end of the 11th century, the Ulaid had a final revival under Donn Sléibe mac Echdacha, from whom descended the Mac Dúinn Shléibe—anglicised MacDonlevy—kings that ruled Ulaid in the 12th century, with the Dál Fiatach kingship restricted to their dynasty after 1137. They developed close ties with the kingdom of the Isles. The Mac Dúinn Shléibe kings desperately maintained the independence of Ulaid from the Mac Lochlainn rulers of the Northern Uí Néill. 12th century By the beginning of the 12th century the Dál nAraidi, ruled by the Ó Loingsigh (O'Lynch), had lost control of most of Antrim to the Ua Flainn (O'Lynn) and became restricted to a stretch of land in south Antrim with their base at Mag Line (Moylinny). The Ua Flainn were the ruling sept of the Airgíallan Uí Thuirtre as well as rulers of Fir Lí, both of which lay west of the River Bann. In a process of gradual infiltration by marital and military alliances