The invention includes methods and compositions for treating mastitis in a subject. The method includes the step of administering, by intramammary delivery, a therapeutically effective amount of a polyether ionophore, or a therapeutically acceptable salt thereof, to the mammary gland of the subject.