The uncontrolled burning of the last portion, or end gas, of the air/fuel mixture in the cylinder of a spark-ignition engine. Detonation is also known as knock or ping.