A fungal infection of the finger or toenails is called onychomycosis. It can present with findings such as discolouration, thickening, and separation from the nail bed. Risk factors for nail fungus can be listed as follows:
Trauma
Advanced age
A moist environment, staying wet, excessive sweating
Tight, closed footwear
Diabetes
Circulatory problems