The world's first public railway was the Stockton to Darlington line in England, which opened in 1825. It was just eight miles long when it opened to transport both passengers and freight.