The invention relates to a preparation method of a dye leveling agent, and belongs to the technical field of dye additives. Mixed enzymes and 
acrylamide are mixed for 
polymerization under the action of an initiator to form 
polyacrylamide, the enzymes are encapsulated, 
metal elements in mixed liquid are adsorbed, the 
enzyme activity is increased by using the 
metal elements, cross-linking with 
chitosan and mixed 
sugar is achieved under the action of an assistant, incomplete cross-linking is achieved under the action of N-methylenebisacrylamide and 
glutaraldehyde, and an acylating agent is used for 
acylation to increase active groups. When the dye leveling agent is in use, firstly the mixed enzymes increase surface active groups by partially destroying the surface of a fabric; then the dyeingagent is bonded with the surface of the fabric under the action of 
glutathione synthetase through an incompletely cross-linked material, and the adoption of 
fatty alcohol is more conductive to infiltration of raw materials; finally the 
dyeing agent is adsorbed on the surface of the fabric under the action of the formed 
polyacrylamide and loaded 
chitosan and is separated from the surface of the fabric with the increase of the temperature, and thus coloring can be better achieved.