Echinostoma caproni (Trematoda: Echinostomatidae) is an intestinal trematode with no tissue phases in the definitive host that has been extensively used as an experimental model to study the factors that determine resistance against intestinal helminths. In E. caproni infections in mice, interleukin-25 (IL-25) plays a critical role and it is required for the resistance to infection. However, little is known on the factors that determine its production. Primary E. caproni infection in mice is characterized by the development of chronic infections and elevated worm recovery, in relation to a local Th1 response with elevated production of interferon-γ. However, partial resistance against secondary E. caproni infections in ICR (Institute of Cancer Research) mice is developed after the chemotherapeutic cure of a primary infection and the innately produced IL-25 after pharmacological treatment. In this paper, we analyse the potential role of intestinal microbiota in the production of IL-25, and the subsequent resistance to infection. For this purpose, we analysed the production of IL-25 under conditions of experimental dysbiosis and also the changes in the resident microbiota in primary infections, pharmacological curation and secondary infections. The results obtained showed that resident microbiota play a major role in the production of IL-25 and the appearance of members of the phylum Verrucomicrobia as a consequence of the curation of the primary infection could be related to the partial resistance to secondary infection.