A water softener is designed to remove the hardness (a combination of Calcium & Magnesium salts) from the water by a process known as ion exchange. ... The media, called resin, in the water softener, is charged with sodium ions from the brine (sodium chloride) contained in the brine tank, during the regeneration process.