Notwithstanding the success of the tramroad, as railway technology developed it became apparent that towns served by a railway had an economic advantage over other places that were not so served. In August 1854 the Leominster, Hay and Brecon Railway was promoted, but it proved impossible to raise money for the scheme and it was dropped. Captain Walter Devereux returned to live at Tregoyd, near
Glasbury. He found Breconshire backward, and at a public meeting in Hay on 12 November 1857 he launched the Hereford, Hay and Brecon Railway Company. Devereux was keen to build a low-cost railway, but at another meeting in Brecon on 21 July 1858, those present adopted a proposed line via
Bronllys terminating on the hillside north of Brecon. Devereux believed that his idea had been abandoned and he withdrew from the project. The Hereford, Hay and Brecon Railway received its act of incorporation, the '''''' (
22 & 23 Vict. c. lxxxiv), on 8 August 1859; capital was to be £280,000 to build 34 miles 15 chains of railway. A contract for the construction was let to M'Cormick and Holmes for £231,000, and a provisional working arrangement made with the
Oxford, Worcester and Wolverhampton Railway and the Worcester and Hereford Railway to work the line for 45 per cent of gross receipts. The first sod was turned by Lady Tredegar near Brecon on 10 April 1860. However shareholders complained that too many of the directors were from London and were too distant. At a half-yearly meeting in February 1861, they refused to re-elect one of the London directors and substituted a local man. This resulted in serious disruption by the contractor who had close ties to the director, and the disruption was such that the company replaced the contractor by
Thomas Savin. Early in 1859 the HH&BR approached the Hay Railway, and agreement was reached on 6 November 1859, by which the Hay Railway would be purchased for £8,360. This was ratified by the
Hay Railway Act 1860 (
23 & 24 Vict. c. clxxix) on 6 August 1860, effective on 22 August 1860. At an early meeting of the shareholders, the line was described as being part of the shortest route from London to
Milford Haven. This gave the HH&BR a convenient way to get access to Brecon; the HH&BR, the
Brecon and Merthyr Railway and the
Neath and Brecon Railway were all interested, and they decided to buy it jointly and allocate it out in pieces among themselves. Thomas Savin actually made the purchase of the HH&BR part, receiving HH&BR shares for his outlay. The HH&BR went south as far as a location called Aberllynvy near Glasbury, and the junction station became known as Three Cocks Junction after an inn nearby. The end-on junction with the Mid-Wales Railway was 29 chains north of Three Cocks Junction station; the reason for this is that it was originally intended by the Mid-Wales to build a north curve, making a triangle at Three Cocks; the boundary between the two companies would have been at the north-east apex of the triangle. The powers to build from Aberllynvy to Talyllyn were transferred to the Mid-Wales Railway, and the powers from there to Brecon were transferred to the Brecon and Merthyr Railway. ==Entry to Hereford==