Capacitive deionization (CDI) is a technology to deionize water by applying an electrical potential difference over two porous carbon electrodes. Anions, ions with a negative charge, are removed from the water and are stored in the positively polarized electrode. Likewise, cations (positive charge) are stored in the cathode, which is the negatively polarized electrode.