Indigo vat as reduction-oxidation chemistry
Indigo is insoluble in water, so dyers must chemically reduce it, traditionally through bacterial fermentation in an alkaline vat, into a soluble yellow-green form called leuco-indigo that can penetrate fibre. When the cloth is lifted out, oxygen in the air turns the dye back into insoluble blue, locking it into the fibre.
