Magnesium ribbon must be cleaned before burning in the air, so as to remove the layer of MgO formed due to the reaction between magnesium and air.