The present invention relates to a cosmetic composition in the foam form comprising, in a physiologically acceptable medium, at least one aqueous phase, talc and one UV sunscreen ingredient. It also relates to a cosmetic composition in the foam form comprising, in a physiologically acceptable medium, at least one aqueous phase, at least 1% by weight of at least one mineral filler relative to its total weight, and one UV sunscreen ingredient.