Provided is a pharmaceutical formulation and a method associated therewith for treating bacterial vaginosis. The pharmaceutical formulation includes from 10 to 25 weight parts of poloxamer F127, from 0.5 to 3.0 weight parts of xanthan gum, from 70 to 90 weight parts of water, and a therapeutically effective amount of a pharmaceutical active ingredient. The pharmaceutical formulation may also include from 0.5 to 1.5 weight parts of benzyl alcohol.L'invention concerne une formulation pharmaceutique et un procédé associé pour traiter une vaginose bactérienne. La formulation pharmaceutique comprend de 10 à 25 parties en poids de poloxamère F127, de 0,5 à 3,0 parties en poids de gomme de xanthane, de 70 à 90 parties en poids d'eau, et une quantité thérapeutiquement efficace d'un principe actif pharmaceutique. La formulation pharmaceutique peut également comprendre de 0,5 à 1,5 parties en poids d'alcool de benzylique.