Ketoconazole is an anti-fungal agent that targets the yeast-like fungus associated with dandruff. It helps reduce fungal growth, thereby minimizing scalp flaking and irritation.