Nail fungal infections, also known as onychomycosis, need to be treated with oral antifungal medications or topical medications. 1. Oral antifungal medications: Most nail fungal infections are caused by ringworm, and can be treated with oral antifungal medications such as terbinafine, itraconazole, or fluconazole, which usually need to be continued for at least a few months before significant improvement is seen. 2. Topical medication: Amorolfine or Ciclopirox can be applied. Usually, topical medication should be combined with oral medication for better results. In addition, you should trim your nails regularly and keep your feet dry, change your shoes and socks frequently, and sterilize the changed shoes and socks thoroughly in the sun. For fungal nail infections, it is recommended to go to the hospital to receive professional and standardized diagnosis and treatment. The medication should be used according to the doctor’s prescription.