Castell y Bere is a Welsh castle near Llanfihangel-y-pennant in Gwynedd, Wales. Constructed by Llywelyn the Great in the 1220s, the stone castle was intended to maintain his authority over the local people and to defend the south-west part of the princedom of Gwynedd. In 1282, war with Edward I of England resulted in the death of Llywelyn's grandson, Llywelyn ap Gruffudd, and Castell y Bere fell to English forces.
Edward I expanded the castle further and established a small town beside it. In 1294 the Welsh leader Madog ap Llywelyn mounted a major revolt and the castle was besieged and apparently burnt. Edward did not repair it and it became ruined. Today it is in the hands of Cadw and operated as a tourist attraction.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.