The diagram shows an aluminium oxide electrolysis tank. Both the negative electrode (cathode) and positive electrode (anode) are made of graphite, a form of carbon.
Aluminium metal forms at the negative electrode and sinks to the bottom of the tank, where it is tapped off.
Oxygen forms at the positive electrodes. This oxygen reacts with the carbon of the positive electrodes, forming carbon dioxide, and they gradually burn away