Disclosed are uses of a Pulsatilla saponin compound B4 represented by formula (I) or a pharmaceutically acceptable salt thereof in preparing a drug for treating viral and/or bacterial diseases, such as bovine mastitis, said Pulsatilla saponin compound B4 represented by formula (I) or a pharmaceutically acceptable salt thereof being an active ingredient.L'invention concerne les applications d'un composé de Pulsatilla saponine B4 de formule (I) ou son sel pharmaceutiquement acceptable pour la préparation d'un médicament pour le traitement de maladies virales et/ou bactériennes, notamment la mastite bovine, ladite Pulsatilla saponine B4 de formule (I) ou son sel pharmaceutiquement acceptable étant un principe actif.