Nystatin is a medication used to treat fungal infections of the mouth, skin, vagina, and intestinal tract.