A solution of sodium chloride is electrolyzed and sodium hydroxide is made around the cathode , where water is reduced to hydrogen gas and hydroxide ion . This involves the electrolysis of an aqueous solution of sodium chloride . The sodium hydroxide builds up at the cathode , where water is reduced to hydrogen gas and hydroxide ion :