Dunmanway (, official Irish name: ) is a market town in County Cork, in the southwest of Ireland. It is the geographical centre of the region known as West Cork. It is the birthplace of Sam Maguire, an Irish Protestant republican, for whom the trophy of the All-Ireland Senior Football Championship is named. There is disagreement over the meaning and origin of the town's name. Various sources list its meaning when translated from Irish as "the castle of the yellow river," "the castle on the little plain," "the fort of the gables (or pinnacles)," and "the fort of the yellow women." The town centre is built on and around two rivers, which are tributaries of the larger River Bandon, which passes by at the east end of the town. The town is twinned with Quéven, France. Dunmanway won the Irish Tidy Towns Competition in 1982. More recently, the town came to national and international attention thanks to a visit by Liverpool Football Club for a pre-season soccer friendly. The population of Dunmanway at the 2011 census was 1,585, rising to 1,655 by the 2016 census. History Dunmanway has been inhabited since prehistoric times, as testified by a Bronze Age trumpet in the British Museum. From the mid-13th to the late 17th century the surrounding districts of the town of Dunmanway were included in the territory of the MacCarthy Clan. Dunmanway Castle once stood on a bank of the Sally River on the left-hand side of present-day Castle Street. It was one of the chief residences of the MacCarthy Lords of Gleannacroim, cousins of the MacCarthy Reagh sept. Dating from the late 15th century, the tower house is recorded to have been built by Catherine Fitzgerald. There was likely a small settlement in the environs of the castle. 19th-century references date the founding of Dunmanway to the late 17th century, when the English crown settled a colony there to provide a resting place for troops marching between Bandon and Bantry. By 1700, about thirty families lived in the town. Sir Richard Cox, Lord Chancellor of Ireland from 1703 to 1707, was the town's most important early patron. In 1693, Cox obtained a grant from King William III to hold market days and fairs in the town and strongly encouraged the development of the local flax industry. To that end, Cox imported artisans from Ulster to teach the required skills. He sponsored