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 as well as growing pressure from the encroaching Cenél nEógain, they moved their power east of the Bann. Once they had come to prominence in Antrim the Ua Flainn styled themselves as king of Dál nAraidi, Dál Riata, and Fir Lí, alongside their own Uí Thuirtre.