Sulfur dioxide is added to the apple juice to prevent the growth of harmful bacteria or yeasts. It helps the yeast to thrive in the juice environment, which is necessary for turning sugars into alcohol. Sulfur dioxide also acts as an antioxidant chemical or stabilizer for the hard cider production, keeping the finished cider free from releasing hydrogen peroxide or other aldehydes that produce bad aromas or flavors.