The Pontypridd and Rhondda Valley Tramway Company was incorporated by the Pontypridd and Rhondda Valley Tramways Order 1882, which authorised the construction of a link between the town of Pontypridd and the village of Treherbert in Glamorgan. The two termini are about apart, but the line as built only ran from Pontypridd for to the village of Porth. By October 1887, the company was experiencing financial difficulties, and they asked Solomon Andrews to complete the construction of the line, and then to run it for three years. Andrews was an entrepreneur from Cardiff, who had built a large commercial empire, which included coachbuilding and transportation. He began building buses in the 1870s, and in 1882 he obtained a patent for a horse bus that could run on tramway rails. He ran bus services in several British towns, and ran street tramways in Cardiff and Newport, as well as the Pontypridd tramway. The company had hoped to open the line on 2 November 1887, but Andrews did not agree to run the line early enough to meet this deadline, and it probably opened later in November, although the exact date has not been recorded. The line was single track, with the western terminus at The Square in Porth. It followed a course which is now the A4058 road towards Pontypridd, ending near the viaduct which carried the Taff Vale Railway's Rhondda line. This structure prevented the tramway, with its double deck cars, from continuing onwards to the town centre. After three years of operation, the company was still in financial difficulties, and was bought out by another company owned by Andrews, the South Wales Machinery & Carriage Company, in 1890. They ran it for another eight years, and then sold it to the British Electric Traction Company, who were building up a portfolio of tramways. Their policy was to seek local authority agreement to electrify and extend the lines they took over, but in this case they were unsuccessful. The services ran for another two years, but ended abruptly, probably in February 1902, when an outbreak of the infectious disease glanders resulted in most of the horses dying. The councils of Pontypridd and Rhondda were both hoping to build their own tramways, and Pontypridd obtained statutory powers to buy the line inAugust 1903. British Electric Traction received £5,750 on 31 October 1904, and the two authorities each took over a section of the line, which they upgraded to run electric trams. Despite the fact that the two systems were linked at Trehafod, passengers had to change cars at that point, and it was not until 14 July 1919 that through running was again possible. This also required an adjustment to timekeeping, as both systems used local time, which differed by four minutes, but was resolved by both adopting Greenwich Mean Time.