The invention discloses a preparation for treating vaginitis. The preparation is prepared from the following raw materials: cottonrose hibiscus root fermentation liquor, a purple perilla extracting solution, folium mori, honeysuckle flower, aloe, fructus cnidii, viola japonica, herba houttuyniae, alginate oligosaccharide and chitosan, and the invention further discloses a preparation method of thepreparation for treating vaginitis. The cottonrose hibiscus root is fermented through a lactobacillus solution, the extracted traditional Chinese medicine effective components are subjected to biological conversion, macromolecular substances of the traditional Chinese medicine are subjected to microbial conversion to become small molecular components capable of being absorbed by a human body, sothat the efficacy of the traditional Chinese medicine is better exerted, meanwhile, flora balance is facilitated, further, percolation extraction is performed on purple perilla through a dimethyl sulfoxide solution, effective substances in the perilla frutescens are fully extracted; meanwhile, the dimethyl sulfoxide has the functions of penetrating through the biological barrier of the skin of thehuman body and carrying medicines, and a medicine library can be formed under the skin of the human body, so that the medicine components can be more effectively played.