"This castle served as the administrative center of northern Wales and was captured by Madog ap Llywelyn during the Welsh revolt in 1294."