An anhydrous cosmetic composition in the foam form includes at least one pasty fatty substance in a content of between 10 and 50% by weight, at least one wax in a content of between 4 and 20% by weight, at least one nonvolatile oil in a content of between 40 and 70% by weight and silica in a content of between 3 and 15% by weight, the silica being present in the form of particles exhibiting a mean size of greater than or equal to 0.5 μm and preferably of less than 100 μm.