The electrolysis of a sodium chloride solution (brine), known as the Chlor-alkali process, can be used to produce chlorine. Chlorine can also be formed by electrolysis of a potassium chloride solution, in which case the hydrogen and caustic potash are the co-products