Rehydration and dehydration of the clay minerals