In 1825, the first public railway came into existence when George Stephenson built the Stockton Darlington railway line. In 1830, George Stephenson built the railway between Liverpool and Manchester. Earlier, on July 25, 1814, he had tested his first locomotive on the Cillingwood railway with eight wagons loaded with coal.
However, it was a little-known British engineer named Richard Trevithick who made the first fully functioning locomotive based on the principles of the steam engine in 1804. Earlier, steam was used during the industrial revolution in England to power other mechanical devices.
These trains used a steam locomotive that was based on the principles of the motive power of steam discovered by James Watt.