When tannins are extracted into hot water, some of these compounds are partially hydrolyzed to form free gallic acid. The tannins (because of their phenolic groups) and gallic acid (because its carboxyl groups) are both acidic. If sodium carbonate, a base, is added to tea water, these acids are converted to their sodium salts, which are highly soluble in water.