A reversible process in which ions are released from an insoluble permanent material in exchange for other ions in a surrounding solution; the direction of the exchange depends upon the affinities of the ion exchanger for the ions present, and the concentrations of the ions in the solution.