The way you treat toenail fungus depends on which fungus you have and how bad the infection is. Your doctor may try one thing or a combination: A topical cream that goes directly on the nail. A topical nail lacquer. An antifungal prescription pill. Removing the damaged area of the nail or skin.