Aberystwyth Castle was built in response to the First Welsh War in the late 13th century, replacing an earlier Motte and bailey castle located a mile to the south. The current castle was rebuilt in its current location by Edward I of England in 1277 after the end of the first war against Llywelyn ap Gruffydd Llywelyn the Great's grandson. The Welsh took the castle in 1282 at the start of the 1282 war and burned both the castle and the town. Under master mason James of St George, the castle was eventually completed in 1289, though it was sieged extensively during the revolt of Madog ap Llywelyn in 1294–5.
During a national uprising by Owain Glyndŵr, the Welsh captured the castle in 1404, but it was recaptured by the English four years later. In 1637 it became a Royal mint by Charles I, and produced silver shillings. The castle was slighted by Oliver Cromwell in 1649.
References:Trenčín Castle is relatively large renovated castle, towering on a steep limestone cliff directly above the city of Trenčín. It is a dominant feature not only of Trenčín, but also of the entire Považie region. The castle is a national monument.
History of the castle cliff dates back to the Roman Empire, what is proved by the inscription on the castle cliff proclaiming the victory of Roman legion against Germans in the year 179.
Today’s castle was probably built on the hill-fort. The first proven building on the hill was the Great Moravian rotunda from the 9th century and later there was a stone residential tower, which served to protect the Kingdom of Hungary and the western border. In the late 13th century the castle became a property of Palatine Matúš Csák, who became Mr. of Váh and Tatras.
Matúš Csák of Trenčín built a tower, still known as Matthew’s, which is a dominant determinant of the whole building.