Abstract:1-(3-Dimethylaminopropyl)-3-ethylcarbodiimide hydrochloride (EDC)/N-hydroxysuccinimide (NHS) grafting method was employed to chemically graft polyvinylamine with betaine onto cotton fiber to make it cationic, which solved the problem of water pollution caused by the large use of inorganic salts in the traditional dyeing process. As the cationic of cotton fiber increases, the affinity between dyes and fibers increases, compared with the traditional inorganic salt dyeing method, the dyeing rate of our method is increased from 40.8% to 78.0%, the levelness and color fastness are improved, and the chemical oxygen demand (CODcr) of dyeing wastewater is reduced from 1267 mg/L to 221 mg /L. This method is of simple operation and excellent effect, meeting the current concept of green environmental protection, and can be widely used in fabric dyeing.