A mordant is a substance used in dyeing and printing that helps fix dyes onto fibers by forming a coordination complex with the dye, which then attaches to the fabric. It is crucial in achieving color fastness and enhancing the intensity and durability of the color on textiles.