Water softener systems work by removing minerals like calcium and magnesium from the water through a process called ion exchange.