Late in the 9th century, King Alfred created a network of strongholds called burghs across his kingdom. In the event of a Danish raid, all the men in the area were supposed to gather in the stronghold or burgh. It is recorded that there was a burgh called Hamtun (later this name changed into Southampton).