The swapping of one cation for another on a clay's exchange sites, altering how the clay hydrates and swells.