Diesel electric, electricity or steam power are the three major fuels used by trains. As it was in various other sectors, steam power was also used in the beginning days of railroads. The development of diesel-electric and electric technology for power led to their popularity in the early 20th century.