In a nutshell, selenium sulfide is an anti-infective agent used as the active ingredient in topical products that help fight off fungal infections, like dandruff or seborrhea. Many over-the-counter products found in drugstores contain this active ingredient. However, it can also be prescribed by a doctor with a higher dosage to treat your condition.