Onychomycosis is the term for fungal nail infection, which can cause the nails to grow thick, brittle, and opaque. Treatment for this condition is an antifungal medication.