Ketoconazole is used to treat skin infections such as athlete's foot, jock itch, ringworm, and certain kinds of dandruff.