What chemical process makes a water softening system function?

What chemical process makes a water softening system function?