Selenium sulfide is a topical medicine used to reduce flaking and itching associated with dandruff and seborrheic dermatitis. It is also used to treat a fungal skin condition called tinea versicolor.