Steam-powered locomotives were invented in the early 1800s. At first they pulled freight cars full of coal, and later passenger cars full of people. A steam locomotive generally burned coal in a furnace, or “firebox,” and the fire heated water in a boiler to make steam.