Antifungal medications, such as an antifungal cream, are often used to treat and prevent fungal infections, also known as mycosis.