, Swansea. In 1802, Homfray commissioned engineer
Richard Trevithick to build one of his high-pressure steam engines to drive a
hammer at the Penydarren Ironworks. With the assistance of works engineer Rees Jones, Trevithick mounted the engine on wheels and turned it into a locomotive. In 1803, Trevithick sold the patents for his locomotives to Homfray. Homfray was so impressed with Trevithick's locomotive that he made another bet with Crawshay, this time for 500
guineas (£525), that Trevithick's steam locomotive could haul 10
tons of iron along the
Merthyr Tydfil Tramroad from Penydarren () to
Abercynon (), a distance of . Amid great interest from the public, on 21 February 1804 it successfully carried 11.24 tons of coal, five wagons and 70 men over the full distance, in 4 hours and 5 minutes, at an average speed of . As well as Homfray, Crawshay, and the passengers, other witnesses included Mr. Giddy, a respected patron of Trevithick, and an 'engineer from the Government'. The latter was probably a safety inspector, who would have been particularly interested in the boiler's ability to withstand high steam pressures. In modern Merthyr, behind the monument to Trevithick's locomotive, is a stone wall, which is the sole remainder of the former boundary wall of Penydarren House. == 1811–1856: Merthyr Rising ==