The fortress, originally founded by Henry I in 1109, witnessed several fierce battles, notably in the 15th century when the Welsh hero Owain Glyndwr burnt the town and took the castle from the English.