Based on the operation at low or high temperatures in alkaline and neutral environments, textile soaps are divided into three categories: anionic, nonionic and cationic, which are used in dyeing in order to wash, decolor and remove excess colors from the surface of the fabric, depending on the type and material of the fabric.