Before becoming adult fleas, the larvae transform into pupae within a silk-like cocoon. Pupae remain inside the cocoon for 2 to 4 weeks, sometimes longer. The cocoon is resistant to insecticides and this is why some adult fleas are seen for an extended period, even after the home and pet are treated.