Ketoconazole is an antifungal medication used to treat fungal infections of the skin, nails, mouth, throat, and vagina. It is also used to treat dandruff, seborrheic dermatitis, and tinea versicolor. It works by stopping the growth of fungi. Common side effects include nausea, vomiting, diarrhea, and abdominal pain.