The chemical aspects of thermally- and/or compositionally-stratified n-heptane/air mixture under HCCI conditions are examined to obtain the insight of the ignition process in HCCI combustion. Chemical explosive mode analysis (CEMA) is adopted to understand the spatial ignition characteristics of the lean n-heptane/air mixture by identifying controlling species and elementary reactions at different locations and times.