The present invention relates to novel cosmetic compositions, more particularly for treating the skin or the hair, comprising an ampholytic artificial copolymer. The invention also relates to the use of the polymer in cosmetic compositions. The polymer comprises units derived from a polycationic monomer and units derived from a monomer of acidic nature.