Diesel engines use compression ignition, a process by which fuel is injected after the air is compressed in the combustion chamber causing the fuel to self ignite. By contrast, a gasoline engine utilizes the Otto cycle, in which fuel and air are mixed before ignition is initiated by a spark plug.