The invention relates to a self-foaming composition containing ivermectin, for a no-rinse topical application and for application to the skin, comprising: at least one intermediate composition B comprising a gas-generating agent; at least one intermediate composition A comprising an agent for activating the gas-generating agent; and ivermectin contained in the composition A, in the composition B, or simultaneously in the two compositions A and B. The invention also relates to a kit or a single container comprising a plurality of compartments containing such a composition.