 Their expansion was eventually halted by Alfred the Great of Wessex, whose victory in the Battle of Edington in May 878 paved the way for the creation of the kingdom of England.In 866, when Amlaíb and Auisle were invading Fortriu, Flann mac Conaing King of Brega took advantage of their absence to exact revenge for their invasion of 863, inflicting a significant defeat on the Norsemen.In the same year Cennétig mac Gaíthéne, king of Loígis, defeated the Norsemen at Mindroichet (Mondrehid in County Laois).