The invention relates to the technical field of textile dyeing and finishing, and discloses a dyeing technology for a cotton cloth. The method for treating a cotton cloth gray fabric comprises the following steps of S1, performing singeing on the gray fabric; S2, performing resizing; S3, performing bleaching; S4, performing washing; S5, performing dyeing, wherein the gray fabric obtained after treatment in S4 is dyed, dyes adopted during dyeing are prepared from, by weight, 35-50 parts of active dyes, 7-10 parts of sodium carbonate, 3.5-5 parts of anhydrous sodium sulphate, 20-30 parts of a leveling agent, 5-8 parts of acetic acid, 11-23 parts of magnesium sodium silicate, 7-13 parts of imidazolidinyl urea, 2-5 parts of copper chloride and 80-110 parts of water; S6, performing washing; S7,performing color fixing; S8, performing dehydrating; S9, performing sizing, wherein after sizing in S9 is performed, the dyed cotton cloth is obtained. By adding magnesium sodium silicate and imidazolidinyl urea into dyes, active dyes can be promoted to continuously permeate cotton fiber, the imidazolidinyl urea can improve the combining capability of the active dyes and the cotton fiber, and finally the color fastness of the dyed cotton cloth is improved.