There are several over-the-counter treatments that can be effective in treating a yeast infection on the skin, such as topical creams or ointments containing antifungal agents. In some cases, a doctor may prescribe a stronger antifungal medication for more severe or difficult-to-treat infections.