High pressure and temperature in the cylinder cause detonation (this is when the fuel/air mixture explodes rather than burns)

High manifold pressure and low revolutions would cause this condition.

The grade of fuel used in an engine must ensure that detonation doesn’t occur during the engine’s normal operating range (for temperature and pressure)

A lower octane fuel allows detonation to occur at lower temperatures and pressures but it doesn’t actually cause detonation