Which answer best describes the main benefit of the steam engine?

It was used to create road-building materials.
It was used to power trains and steamboats.
It was used to run many factories in the 1820s.
It was used to help dig canals and build railroads.