Whenever a denim fabric is treated in water, this causes a partial detachment of indigo and sulphur dyestuffs, typical of this class of products.

This cannot be avoided, but chemical products can be used to keep these dyestuffs in dispersion and prevent them from settling on the fabric again and making it dirty.