Onychophagia is the compulsive behavior of biting one's nails. It is often associated with anxiety, stress, or boredom and can lead to physical damage to the nails and surrounding skin. This habit is considered a type of body-focused repetitive behavior and may require behavioral interventions or therapy for treatment. If severe, it can also result in infections or other health issues.