Voriconazole is a broad-spectrum antifungal medication used primarily to treat serious fungal infections, including invasive aspergillosis and certain types of candidiasis. It is available in both oral and intravenous formulations and is often used when other antifungal treatments have failed or are not tolerated.