Negatively charged resin attracts positively charged minerals, trapping them in a chemical bond. The salt or potassium in the brine solution breaks the bonds and sweeps minerals down the drain.