The oxygen reacts with the carbon anodes, forming carbon dioxide. So the anodes gradually wear away. They must be replaced frequently, adding to the cost of producing aluminium.