The invention relates to a process for treating keratin fibres, in particular human keratin fibres such as the hair, comprising the application to the keratin fibres of a cosmetic composition comprising a pyridinedicarboxylic acid compound. The process makes it possible to obtain good cosmetic properties in terms of manageability of the hair and sheen, with a long-lasting effect.