Mupirocin, an antibiotic, is used to treat impetigo as well as other skin infections caused by bacteria. It is not effective against fungal or viral infections. This medication is sometimes prescribed for other uses;