After William the Conqueror defeated Harold Godwinson and the English at the Battle of Hastings on 14 October 1066, he continued to face resistance to his rule in the north of England. For a number of years, William's position was very insecure. In order to project his influence northwards to control the people of the Danelaw (an area that had for a time been under the control of Scandinavian settlers), he constructed a number of major castles in the North and Midlands of England: including those at Cambridge, Huntingdon, Lincoln, Nottingham, Warwick and York.