Diodochy is a process that removes elements from the environment by substitution during precipitation of commonly occurring compounds. Elements with similar sizes and charges can substitute for one another in a crystalline lattice. The substitution of toxic elements in stable crystals can prevent release of the element to the environment.