Likely a hillfort, the mercantile nature of the settlement possibly develoing under Hiberno-Norse influence. The town grew as a seaport around the now-ruined Tenby Castle. The town walls were built by William de Valence, 1st Earl of Pembroke, in the 13th century.