Why is magnesium cleaned before burning?

Magnesium is quite reactive so it naturally forms a slight coating of its oxide. Aluminium does the same and this acts as a protectant to the metal inside. Normally you would burn Mg to find the mass of the oxide formed. If there is already some oxide present it will cause the result to be inaccurate. Cleaning the ribbon first allows pure Mg to react.