Step-by-step explanation:
The graphite anodes are suspended into the brine. During electrolysis, Cl ions are oxidized at the anode and chlorine gas goes out of the cell, while sodium ions are reduced at the mercury cathode forming sodium amalgam. ... Hydrogen gas is obtained as a by–product at the cathode.