The Viking age ended when the raids stopped. The year 1066 is frequently used as a convenient marker for the end of the Viking age. At the Battle of Stamford Bridge, the Norwegian king Haraldr harðráði was repulsed and killed as he attempted to reclaim a portion of England.
Throughout the Viking Age, there were many battles between the Vikings and the English. In the 9th century, the English king Alfred the Great stopped the Vikings taking over all of England. In the 10th century the English reconquered much of the land held by Vikings. In 954, they drove out Eric Bloodaxe, the last Viking king of Jorvik. After Eric was killed in battle, the Vikings in England agreed to be ruled by England’s king.