In the electrolysis of water (acidified), the gases that are evolved at the anode and cathode, respectively, are oxygen and hydrogen. Hydrogen ions gain electrons from the cathode and form hydrogen gas, and oxygen ions give electrons to the anode and form oxygen gas.