A steam locomotive uses wood, coal or oil (but mostly coal) as fuel to heat water in a boiler, which turns into steam which pushes pistons to power the train. Steam locomotives were invented in the early 19th century. They are not widely used any more due to their operational costs, especially the fuel costs; steam locomotives are now mostly only used on tourist railroads.