Military history of Ireland
The Vikings pillaged monasteries on Ireland's west coast in 795, and then spread out to cover the rest of the coastline. The north and east of the island were most affected. During the first 40 years, the raids were conducted by small, mobile Viking groups. From 830 on, the groups consisted of large fleets of Viking ships. From 840, the Vikings began establishing permanent bases at the coasts. Dublin was the most significant settlement in the long term. The Irish became accustomed to the Viking presence and culture and in many cases became allies, with intermarriage common throughout Ireland. A major Irish battle involving Vikings was fought at the Battle of Clontarf in 1014, in which a large force of Vikings and their Irish allies were defeated by the gathered Irish forces of Brian Boru, then the High King of Ireland along with a small contingent of Viking defectors. After this date Viking activity was sporadic with various Kings and nobles attempting to extend their power base. In 1099, Magnus Barefoot, the King of Norway, and his Viking army had successfully campaigned alongside their Irish allies against opposing Irish warbands. On his return his force was ambushed and killed on the north coast of Ireland.
History of Limerick
The earliest record of vikings at Limerick is in 845, reported by the "Annals of Ulster", and there are intermittent reports of vikings in the region later in the 9th century. Permanent settlement on the site of modern Limerick had begun by 922. In that year a Viking jarl or prince called Tomrair mac Ailchi—Thórir Helgason—led the Limerick fleet on raids along the River Shannon, from the lake of Lough Derg to the lake of Lough Ree, pillaging ecclesiastical settlements. Two years later, the Dublin vikings led by Gofraid ua Ímair attacked Limerick, but were driven off. The war between Dublin and Limerick continued until 937 when the Dubliners, now led by Gofraid's son Amlaíb, captured Limerick's king Amlaíb Cenncairech and for some reason destroyed his fleet. However, no battle is actually recorded and so a traditional interpretation has been that Amlaíb mac Gofraid was actually recruiting Amlaíb of Limerick for his upcoming conflict with Athelstan of England, which would turn out be the famous Battle of Brunanburh. The 920s and 930s are regarded as the height of Norse power in Ireland and only Limerick rivalled Dublin during this time.