Mordanting is the pre-treatment of fabrics to improve dye binding and achieve colorfastness. Mineral salts (alum, iron), plant tannins, and soymilk are used.