In electrolyte is of aqueous solution of NaCl to prepare caustic soda which reaction occur at anode

Reduction of H+ ions

Oxidation of Cl- ions

Formation of water molecules

Reduction of Na+ ions