Viking raids from <answer>840</answer> onwards contributed to the decline of Hamwic in the 9th century, and by the 10th century a fortified settlement, which became medieval Southampton, had been established.
What year did the Vikings start attacking Hamwic?
840