When a candle burns in a limited supply of air, it undergoes incomplete combustion, producing carbon (soot) and carbon monoxide (CO) instead of carbon dioxide and water.