The invention relates to a composition for topical use in prevention and treatment of bacterial and fungal infections of skin and mucosa comprising fucose and/or fucosyllactose, a buffer ensuring a pH value of the composition of 3.0 to 4.0, a matrix-forming agent, water and, optionally, additional active and/or auxiliary substances.