Fungal nail infection (onychomycosis) can cause permanent damage to the nail if left untreated. The fungus can destroy the nail plate, causing it to become thickened, discolored, brittle, and misshapen. In severe cases, the nail may partially or completely separate from the nail bed.