An ingrown toenail is caused by pressure on the corner of a nail which is shaped with a curve on the edge. When the nail is curved in this way, it can create a small cut in the skin where it is difficult to see and can then become infected. 

The medical term is “onychocryptosis” – pronounced on-ee-co-crip-toe-sus.