The diesel engine (also known as a compression-ignition or CI engine) is an internal combustion engine in which ignition of the fuel that has been injected into the combustion chamber is caused by the high temperature which a gas achieves (i.e. the air) when greatly compressed (adiabatic compression). Diesel engines work by compressing only the air. This increases the air temperature inside the cylinder to such a high degree that it ignites atomised diesel fuel that is injected into the combustion chamber. This contrasts with spark-ignition engines such as a petrol engine (gasoline engine) or gas engine (using a gaseous fuel as opposed to petrol), which use a spark plug to ignite an air-fuel mixture. In diesel engines, glow plugs (combustion chamber pre-warmers) may be used to aid starting in cold weather, or when the engine uses a lower compression-ratio, or both. The original diesel engine operates on the "constant pressure" cycle of gradual combustion and produces no audible knock.
The diesel engine has the highest thermal efficiency (engine efficiency) of any practical internal or external combustion engine due to its very high expansion ratio and inherent lean burn which enables heat dissipation by the excess air. A small efficiency loss is also avoided compared to two-stroke non-direct-injection gasoline engines since unburned fuel is not present at valve overlap and therefore no fuel goes directly from the intake/injection to the exhaust. Low-speed diesel engines (as used in ships and other applications where overall engine weight is relatively unimportant) can have a thermal efficiency that exceeds 50%.