In many cases one stage of the dyeing process involves the use of a mordant, which is a substance that has an attraction for both the fiber and the dye.
Daudzos gadījumos ir jāizmanto kodinātājs — palīgviela, kas saistās gan ar šķiedru, gan ar krāsvielas molekulām.