The invention relates to a cosmetic composition comprising, in a cosmetically acceptable medium, a compound that can be obtained by reaction between an OH-functionalized or COOH-functionalized wax and a junction group capable of establishing hydrogen bonds with one or more partner junction groups, said junction group comprising at least one unit of formula (I) or (II):The invention also relates to a cosmetic treatment process using said compounds.