Ion exchange and adsorption can exert a great influence on the concentrations of ions in solution. Clay minerals are important ion-exchangers in subsurface systems. During ion exchange, ions in certain layers of the three-dimensional structure of clays are replaced by ions in solution, while a constant total charge within the clay layer is maintained.