Who invented the railway locomotive?

George Stephenson is often credited with inventing the railway locomotive. Stephenson was a British engineer and is known for designing and building the world's first successful steam locomotive, the "Rocket," in 1829. Stephenson's work helped revolutionize transportation and was instrumental in the development of the railway system.