An ingrown nail occurs when the edge of the nail grows into the surrounding skin, leading to pain, swelling, redness, and sometimes infection. This condition commonly affects the toes, particularly the big toe, and may result from various factors such as improper nail trimming, trauma, genetics, or underlying foot deformities.