Mupirocin topical cream is used to treat secondarily infected traumatic skin lesions due to specific bacteria. Mupirocin topical ointment is used to treat impetigo. This medicine works by killing bacteria or preventing their growth. This medicine is available only with your doctor's prescription.