Caerphilly railway works in Caerphilly in the county of Glamorgan was the only main railway works in Wales.
Much of its initial work was in refurbishing older locomotives with new boilers and covered cabs.
Their policy was to modernise and standardise the locomotive stock, and Riches designed a standard boiler and cylinders for all the railway's tank engines.
They were so successful that larger engines were sent, the first being the 4-6-0 Number 5955 Garth Hall.
With the withdrawal of steam on British Railways, the works closed in 1963 and the site converted into an industrial estate.