A diesel locomotive is a type of railway locomotive in which the power source 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. The most common are diesel–electric locomotives and diesel–hydraulic.
Early internal combustion locomotives and railcars used kerosene and gasoline as their fuel. Rudolf Diesel patented his first compression-ignition engine in 1898, and steady improvements to the design of diesel engines reduced their physical size and improved their power-to-weight ratios to a point where one could be mounted in a locomotive. Internal combustion engines only operate efficiently within a limited power band, and while low-power gasoline engines could be coupled to mechanical transmissions, the more powerful diesel engines required the development of new forms of transmission. This is because clutches would need to be very large at these power levels and would not fit in a standard 2.5 m (8 ft 2 in)-wide locomotive frame, or would wear too quickly to be useful.