# Agar gel vs aqueous solution

Can someone tell me why - in experiments to observe corrosion of iron nails - we often use a preparation of agar gel (with $\ce{NaCl}$, phenolphthalein, etc.) instead of an aqueous solution?