Nystatin is frequently prescribed to cancer patients to manage and prevent oral and esophageal candidiasis. This is especially important for patients experiencing mucositis, a painful inflammation and ulceration of the mucous membranes lining the digestive tract, which is a common side effect of cancer treatments. The drug can be administered as an oral suspension or pastilles, which need to be held in the mouth to maximize their antifungal effects.