Captured at the disastrous battle of Dunbar, Andrew de Moray somehow escaped English imprisonment at Chester Castle and travelled north in secrecy to raise the standard of revolt at Avoch castle in 1297. He led the rising in northern Scotland in the summer of 1297 against the English occupation, successfully regaining control of the area. He subsequently merged his forces with those led by William Wallace and jointly led the combined army to victory at the Battle of Stirling Bridge. Moray was mortally wounded in the fighting, dying at an unknown date and place sometime later that year.