For a candle to burn, it requires a spark, which provides the activation energy for the oxidation reaction of the hydrocarbon making the candle.
It also requires oxygen to facilitate the oxidation of the hydrocarbon.
Therefore the two main requirements of combustion of a candle are oxygen and a spark (or an initial flame)