What causes thick skin under the toenail the nail is curving around the thickened skin buildup

Probable Fungus. Sounds like toenail fungus causing build up under nail and nail changes. Topical or oral medication can help. Visit a local podiatrist for further evaluation and treatment.