A process for the cosmetic treatment of hair during an operation for permanently reshaping the hair, comprising a step of applying a composition comprising a silicone functionalized with one or more mercapto groups having a molecular weight of less than 10,000, and also to the use of this process and to a particular composition comprising the functionalized silicone.