Mupirocin can treat onychomycosis caused by bacterial infection. However, mupirocin is not effective in treating nail fungus caused by fungal infections. In addition to medication, inguinitis can also be treated by surgery and other means. 1. Medication: For acute inguinitis with mild inflammatory reaction and no abscess, chlorhexidine solution can be used for rinsing. For patients with bacterial infection, antibiotic ointment such as mupirocin ointment and fusidic acid cream can be used externally, while antifungal drugs such as ketoconazole should be used for fungal inguinitis. 2. Surgical treatment: acute inguinitis with clear abscess formation, failure of conservative treatment or extensive inflammation involving a large area of skin around the nail, can be incised longitudinally along the side of the nail groove to drain the pus. Therefore, mupirocin ointment can be used for the treatment of nail groin infection caused by bacterial infection. But the application of the drug needs to be rationally used under the guidance of a doctor and according to the specific condition of the patient.