It treats various fungal infections like invasive aspergillosis (fungal infection in the lungs), esophageal candidiasis (white patching in the mouth and throat) and candidemia (a fungal infection in the blood). It is also used to treat certain fungal infections when other medications do not work for certain patients.