One subject of the invention is a soap-free, self-foaming gel comprising, in a cosmetically acceptable medium:a) at least one aqueous phase;b) at least one N-acylsarcosine where the acyl radical is a C10-C20 radical in an amount less than 4 wt % relative to the total weight of the composition;c) at least one mineral or organic base in an amount sufficient to dissolve the N-acylsarcosine and produce a pH of 4 to 8;d) at least one amphoteric or zwitterionic surfactant;e) at least one non-ionic surfactant; andf) at least one self-foaming agent.The present invention also relates to a shaving method consisting in applying a self-foaming gel as defined above to the surface of the skin to be shaved, then in shaving the hairs using a razor.The present invention also relates to a method for cleansing the skin and more particularly the face, consisting in applying a self-foaming gel as defined above to the surface, followed by rinsing with water.