Onychomycosis is a fungal infection of the nail which may affect toenails or fingernails.