Coordinates: 52°02′34″N 3°12′05″W / 52.04278°N 3.20149°W / 52.04278; -3.20149
Three Cocks or Aberllynfi is a village near Glasbury in Powys, Wales. The Welsh name refers to the mouth of the Afon Llynfi which enters the River Wye a mile from the village. The nearest town is Hay-on-Wye some 5 miles (8 km) to the east.
Aberllynfi was once a separate ecclesiastical parish, but its church fell into disuse in the 18th century.
The curious English name of the village is comparatively recent and was taken from the former railway station (Three Cocks Junction, now a garden centre) where the Hereford, Hay and Brecon Railway met the Mid-Wales Railway. The station derived its name from the 15th century Three Cocks Inn (a coaching inn, still extant) which in turn took its name from the armorial bearings of former local landowners, the Williams family of Old Gwernyfed. These were supposed to have been based on the arms of the medieval Welsh prince Einon Sais, who lived in Aberllynfi, but this is probably a later invention. The station, together with all the services which ran through it, was closed in December 1962. These closures were, in mileage and geographical area disconnected from the rail network, the most substantial of any closures prior to the March 1963 Beeching Report.