Water is passed between an anode (positive electrode) and a cathode (negative electrode). Ion-selective membranes allow the positive ions to separate from the water toward the negative electrode and the negative ions toward the positive electrode. As a result, the ions cannot escape the cell, and deionized water is produced.
