A composition, in particular a cosmetic composition, for making up and/or caring for keratin materials, including at least one aqueous phase gelled with at least one non-starchy hydrophilic gelling agent; at least one oily phase gelled with at least one non-cellulose-based lipophilic gelling agent other than apolar hydrocarbon-based waxes with a melting point of greater than 75.0° C. and silicone polyamides; the phases forming therein a macroscopically homogeneous mixture; the composition also including at least one UV-screening agent.