A hydrogel network holding water

Hydrophilic side groups (blue) pull water in, but only the cross-links (red dashes) stop the chains from dissolving. Add cross-links: a denser mesh holds its shape and swells less — the Flory–Rehner balance of mixing entropy against elastic restraint.