Ingrown toenails occur when the edge of the nail grows into the surrounding skin, leading to pain, swelling, and inflammation. Causes include improper nail trimming, tight-fitting shoes, and injury. Treatment may involve soaking the foot in warm water, gently lifting the nail edge, and in severe cases, surgical removal of the ingrown portion of the nail.