The inability of a substance to dissolve in a particular solvent, resulting in a heterogeneous mixture.