How they Work: Ignition of Fuel
Both resort to small explosions to ignite the fuel. The difference between them, is the way these explosions are carried out. In gasoline engines, these explosions are carried out in a step by step process, wherein the fuel is mixed with air first, then the mixture is compressed by pistons, and eventually ignited by sparks produced by the spark plugs.