Who invented the first railroads?

No one person invented the railroad as it evolved over hundreds of years. The first railroads did not have locomotives. Richard Trevithick is credited with creating the first successful steam locomotive. George Stephenson is credited with expanding the use of railroads from being a part of a mining operation to the first passenger railroads.