XP is caused by mutations in genes responsible for the nucleotide excision repair (NER) pathway. This pathway is crucial for repairing DNA damage caused by UV radiation. Without functional NER, DNA damage accumulates, leading to cell death or uncontrolled cell growth. Cells from individuals with XP often show increased levels of thymine dimers, which are a result of unrepaired UV-induced DNA damage.