A steam locomotive is a type of railway locomotive that produces its power through the combustion of fuel in a steam boiler. This invention revolutionized transportation by enabling the efficient movement of goods and passengers across long distances, particularly in the construction of major railroads like the transcontinental railroad.