The amount of negative charge from deprotonation of clay hydroxy groups or organic matter depends on the pH of the surrounding solution. Increasing the pH (i.e. decreasing the concentration of H cations) increases this variable charge, and therefore also increases the cation-exchange capacity.