A water softener acts like a filter. Its resin bed removes most of the calcium and magnesium (lime) from the water in exchange for sodium. The resin bed consists of many small resin beads. The resin beads bind with the lime and then release sodium. This softens the water. When the resin beads are saturated, they stop working and the filter must be flushed. This flushing, also known as regeneration, is an automatic process that is time or volume based. The softener must be filled with softener salt for regeneration. During regeneration, the calcium and magnesium ions that have saturated the beads are replaced with sodium ions, which flush out the resin bed.