During roasting, copper pyrites are converted to a mixture of FeO and Cu2O.
To remove FeO (basic impurity) an acidic flux, SiO2 is added during smelting. FeO combines with SiO2 to form ferrous silicate (FeSiO3) as slag and floats over the molten matter and hence can be easily removed.