A Homogeneous Charge Compression Ignition (HCCI) engine was operated under a continuous firing condition in this study to visualize combustion in order to obtain fundamental knowledge for suppressing the rapidity of combustion in HCCI engines. Experiments were conducted with a two-stroke engine fitted with a quartz observation window that allowed the entire bore area to be visualized. The effect of varying the compression ratio and fuel octane number on HCCI combustion was investigated. In-cylinder spectroscopic measurements were made at compression ratios of 11:1 and 15:1 using primary reference fuel blends having different octane numbers of 0 RON and 50 RON. The results showed that varying the compression ratio and fuel octane number presumably has little effect on the rapidity of HCCI combustion at the same ignition timing when the quantity of heat produced per cycle by the injected fuel is kept constant. Additionally, the results indicated that increasing the compression ratio mitigated the effect of a higher fuel octane number on retarding the ignition timing and lengthening the ignition delay period.