Complex sentence: It is the largest town in Caerphilly County Borough, within the historic borders of Glamorgan, on the border with Monmouthshire.
Split into simpler sentences: It is the largest town in Caerphilly (county borough). Historically it was in the county of Glamorgan, on the border with Monmouthshire.