The invention relates to a hair dyeing process comprising at least one pigment, at least one additional component selected from cross linking agents and/or plasticizers and at least one block polymer comprising: a first block with a glass transition temperature (Tg) of greater than or equal to 40°C derived from a monomer CH2 = C(R1)-COOR2 in which R1 = H or methyl, R2 = C4 to C12 cycloalkyl group; and a second block with a glass transition temperature (Tg) of less than or equal to 20°C derived from a vinylphosphonic acid and from a monomer CH2 = C(R1)-COOR3 in which R1 = H or methyl, R3 = linear or branched C1 to C6 unsubstituted alkyl group, with the exception of a tert-butyl group or a methoxyethyl group.