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.
Naval warfare
In the 8th century the Vikings appeared, although their usual style was to appear quickly, plunder, and disappear, preferably attacking undefended locations. The Vikings raided places along the coastline of England and France, with the greatest threats being in England. They would raid monasteries for their wealth and lack of formidable defenders. They also utilized rivers and other auxiliary waterways to work their way inland in the eventual invasion of Britain. They wreaked havoc in Northumbria and Mercia and the rest of Anglia before being halted by Wessex. King Alfred the Great of England was able to stay the Viking invasions with a pivotal victory at the Battle of Edington. Alfred defeated Guthrum, establishing the boundaries of Danelaw in an 884 treaty. The effectiveness of Alfred's 'fleet' has been debated; Dr. Kenneth Harl has pointed out that as few as eleven ships were sent to combat the Vikings, only two of which were not beaten back or captured.