Toenail fungus (onychomycosis) is caused by a group of fungi known as dermophytes. This group thrives on skin and on keratin, the main component of hair and nails. The fungus gets under the nail and begins to grow, damaging the nail so it discolors, becoming white, brown or yellow. Eventually, the nail might thicken, harden, become brittle and even fall off.
In some cases of suspected nail fungus there is actually no fungal infection, but only nail deformity. A 2003 source gives a figure of 50%[17] whereas a more recent source claims that fungus is present in 65 to 95 percent of cases.[18] Avoiding use of oral antifungal therapy (e.g. terbinafine) in persons without a confirmed infection is a particular concern because of the possible side effects of that treatment.[17] However, according to a 2015 study, the cost in the United States of testing with the periodic acid–Schiff stain (PAS) was about $148. Even if the cheaper KOH test is used first and the PAS test is used only if the KOH test is negative, there is a good chance that the PAS will be done (because of either a true or a false negative with the KOH test). But the terbinafine treatment only cost $10 (plus an additional $43 for liver function tests). In conclusion the authors say that terbinafine has a relatively benign adverse effect profile, with liver damage very rare, so it makes more sense cost-wise for the dermatologist to prescribe the treatment without doing the PAS test. (Another option would be to prescribe the treatment only if the potassium hydroxide test is positive, but it gives a false negative in about 20% of cases of fungal infection.) On the other hand, as of 2015 the price of topical (non-oral) treatment with efinaconazole was $2307 per nail, so testing is recommended before prescribing it.[18]
Français: se débarrasser d’une onychomycose, Italiano: Liberarsi dall'Onicomicosi, Español: eliminar los hongos de las uñas de los pies (onicomicosis), Deutsch: Zehenpilz loswerden, Português: Se Livrar de Pé de Atleta, 中文: 治疗甲癣, Русский: лечить грибковое поражение ногтя, Nederlands: Van schimmelnagels afkomen, Bahasa Indonesia: Menyingkirkan Jamur di Jari Kaki, Čeština: Jak vyléčit plíseň na nehtech, ไทย: กำจัดเชื้อราที่เล็บเท้า, हिन्दी: पैर के फंगल संक्रमण से छुटकारा पाएँ, العربية: التخلّص من فطريات الأظافر, Tiếng Việt: Điều trị Nấm móng chân
Last, but not least, the secret to natural and effective toenail fungus treatment — and getting rid of it for good — is using essential oils.  I personally recommend two powerful essential oils below if you want to get rid of toenail fungus. I consider this to be one of the most crucial steps! Even if you do this one thing to solve your problem, with or without changing your diet (although you should change your diet too!), you may be able to get rid of toenail fungus.

If you notice any redness, increased swelling, bleeding,or if your infection is not clearing up, see your health care professional. If a bacterial infection is also occurring, an antibiotic pill may be necessary. If you have fungal nail involvement, are diabetic, or have a compromised immune system, you should also see your physician for treatment.
Use tea tree oil. Tea tree oil is a natural anti-fungal. One study showed that tea tree oil may be effective for nail fungus. 18% of patients who used tea tree oil twice daily for 24 weeks were cleared of the infection.[13] To treat nail fungus with tea tree oil, use a 100% solution because lower concentrations have not been proven to be effective for this particular infection.[14]
Ciclopirox (Penlac) topical solution 8% is a medical nail lacquer that has been approved to treat finger or toenail fungus that does not involve the white portion of the nail (lunula) in people with normal immune systems. In one study, ciclopirox got rid of the fungus 22% of the time. The medication is applied to affected nails once daily for up to one year. The lacquer must be wiped clean with alcohol once a week.
Garlic: Proven benefits People have used garlic as a food and medicine for more than 5,000 years. This article looks at research into the health benefits of garlic and the various human conditions that are thought to be helped by the compounds found in garlic. These illnesses include lung, brain, and prostate cancers, and heart conditions. Read now