The present solution refers to compositions for films or solid foams, and method of preparation thereof, for prevention and treatment of urogenital infections, particularly vaginal infections.A composition of aqueous base is described for a film/solid foam for use in the treatment of urogenital infections comprising:0.4-25 % (w/w) of a plasticizer,0.4-20 % (w/w) of at least a mucoadhesive polymer,At least a probiotic and/or prebiotic,At least an active substance in pharmacologically effective amounts.The compositions/films/solid foams described in the present disclosure can be used in the medical field and pharmaceutical industry, particularly for the local treatment of urogenital diseases, particularly vaginal infections.