This common foot problem can create significant discomfort and disrupt your mobility. Nail fungus is not something to ignore. Proper treatment for a fungal infection can include antifungal medications or foot surgery to remove part of all of the infected nail, depending how severe the infection is.