A cosmetic composition in the form of an emulsion comprising at least one aqueous phase and at least one fatty phase, at least one superabsorbent polymer and at least one surfactant of formula (I):Wherein: R1 and R3 denote, independently of each other, an alkyl radical containing from 1 to 25 carbon atoms R2 denotes a spacer formed from a linear or branched alkylene chain containing from 1 to 12 carbon atoms X and Y denote, independently of each other, a group —(C2H4O)a—(C3H6O)bZ, in which Z denotes a hydrogen atom or a radical —CH2—COOM, —SO3M, —P(O)(OM)2, —C2H4—SO3M, —C3H6—SO3M or —CH2(CHOH)4CH2OH, in which M, M′ represent H or an alkali metal, alkaline-earth metal, ammonium or alkanolammonium ion, a ranges from 0 to 15, b ranges from 0 to 10, and the sum of a+b ranges from 1 to 25 and n ranges from 1 to 10 is provided.