The Pontypridd, Caerphilly and Newport Railway was built to bring the coal output of the Aberdare and Rhondda valleys directly to Alexandra Docks at Newport. It was a little over five miles (8 km) in length, running from Pontypridd to a junction near Caerphilly; from there to Newport existing allied railways conveyed the mineral trains. A passenger service was operated later, not stopping intermediately on the line, until in 1904 a railmotor service was started, calling at new low-cost intermediate stopping places. The line closed to passengers in 1962, and to freight from 1965.