What happens is, when an ionic compound is put in water, the negative ion, or the anion, attracts the positive H pole around it, and the positive ion, or the cation, attracts the negative O pole around it. This results in the formation of a unique arrangement called the hydration.