A diesel locomotive is a type of railway locomotive in which the prime mover is a diesel engine.Several types of diesel locomotives have been developed, differing mainly in the means by which mechanical power is conveyed to the driving wheels.. Early internal combustion locomotives and railcarsCustom kerosene and gasoline as their fuel. Rudolf Diesel patented his first compression-ignition