When electricity is passed through sodium sulfate solution, it separates the water molecules. Oxygen gas is produced at one electrode called the anode. At the other electrode called the cathode, hydrogen gas is produced. So, during electrolysis, oxygen gas is made at the anode and hydrogen gas is made at the cathode.