Virtually all 19th century railroads were powered by:

Answer: Diesel fuel
Explanation:
The railroads were the largest single market for steel, which went into their locomotives and track, and they relied on coal as their principal fuel.