A steam locomotive is a locomotive powered by steam. The term usually refers to its use on railways, but can also refer to a "road locomotive" such as a traction engine or steamroller.
Steam locomotives dominated rail traction from the mid 19th century until the mid 20th century, after which they were superseded by diesel and electric locomotives.