Caerphilly (kəˈfɪli, kɑːrˈfɪli; Caerffili, ˌkairˈfɪlɪ) is a town and community in Wales. It is situated at the southern end of the Rhymney Valley. It is north of Cardiff and northwest of Newport. It is the largest town in Caerphilly County Borough, and lies within the historic borders of Glamorgan, on the border with Monmouthshire. At the 2011 Census, the town had a population of 41,402 while the wider Caerphilly local authority area had a population of 178,806. The name of the town in Welsh, Caerffili, means "the fort (caer) of Ffili". Despite lack of evidence, tradition states that a monastery was built by St Cenydd, a sixth-century Christian hermit from the Gower Peninsula, in the area. The Welsh cantref in the medieval period was known as Senghenydd. It is said that St Cenydd's son, St Ffili, built a fort in the area, giving the town its name. An alternative explanation is that the town was named after the Anglo-Norman Marcher Lord, Philip de Braose. The town's site has long been of strategic significance. Around AD 75 a fort was built by the Romans during their conquest of Britain. An excavation of the site in 1963 showed that the fort was occupied by Roman forces until the middle of the second century. Following the Norman invasion of Wales in the late 11th century, the area of Sengenhydd remained in Welsh hands. By the middle of the 12th century, the area was under the control of the Welsh chieftain Ifor Bach (Ifor ap Meurig). His grandson Gruffydd ap Rhys was the final Welsh lord of Sengenhydd, falling to the English nobleman Gilbert de Clare, the Red Earl, in 1266. In 1267 Henry III was forced to recognise Llywelyn ap Gruffudd as Prince of Wales, and by September 1268 Llywelyn had secured northern Sengenhydd. Gilbert de Clare had already begun to take steps to consolidate his own territorial gains, beginning the construction of Caerphilly Castle on 11 April 1268. The castle would also act as a buffer against Llewelyn's own territorial ambitions and was attacked by the Prince of Wales' forces before construction was halted in 1270.