In 875 the Great Army divided. Guthrum took his half into East Anglia while Halfdan moved north into Scotland and attacked the Picts. The Danes made a short foray into Ireland and at Dublin the ruler there was killed. But the Danes returned quickly to York. In 877 Halfdan was back in Dublin but was killed in battle.