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 where the Hereford, Hay and Brecon Railway met the Mid-Wales Railway. The station derived its name from the 15th century Three Cocks Inn 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. Thomas Edwards, a former innkeeper of the Three Cocks, was also a bridge-builder, constructing the 7-arch Glasbury Bridge in 1777 and rebuilding the 3-arch bridge over the Llynfi at Pont Ithel in 1783.
Gwernyfed
The original house and deer park of Old Gwernyfed, to the south of the village, is of medieval origin, but the house was extensively rebuilt in the 17th century. In 1600 it was purchased by Sir David Williams, MP for the Borough of Brecon. In 1613, it was inherited by his son, Sir Henry Williams, MP for the Borough of Brecon and for Breconshire. His son, also Sir Henry Williams, was also MP for Breconshire. On 6 August 1645, he was said to have entertained King Charles I at Gwernyfed, following Charles' defeat at the Battle of Naseby. Curiously, Sir Edward Williams was not a relation, but married the family heiress in 1675. This seems to have ensured that he too became MP for Breconshire. In 1776, Thomas Wood also married the family heiress. Their son, Thomas Wood, was MP for Breconshire for forty-one years. He enjoyed the friendship of members of the royal family and King George IV visited him at Old Gwernyfed. The house is now a grade I listed building. Gwernyfed Park, a much later Jacobean-style house within the deer park, was built for Captain Thomas Wood, MP for Middlesex, by William Eden Nesfield in the 1870s. During the Second World War, it was requisitioned and used by the South Wales Borderers. Since 1950, it has formed part of Gwernyfed High School. A rugby union club, Gwernyfed RFC, was founded at the school in the 1960s, but now plays at and represents the nearby town of Talgarth. Gwernyfed Park is now a grade II* listed building. Following local government reorganization in 1974, Aberllynfi has been placed in the Community of Gwernyfed, together with the neighbouring village of Felindre and the southern part of the village of Glasbury.