Itraconazole is used to treat serious fungal oryeast infections. Itraconazole oral solution is only used to treatoropharyngeal or esophageal candidiasis (thrush, oral thrush). Itraconazolecapsule is used to treat fungal infections, such as aspergillosis (fungalinfection in the lungs), blastomycosis or histoplasmosis. Sporanox capsule is also used to treat onychomycosis(fungal infection in the fingernails or toenails). Itraconazole tablet is onlyused to treat onychomycosis of the toenails. This medicine works by killing thefungus or yeast and preventing its growth.