Cockayne syndrome is caused by mutations in the ERCC6 (CSB) or ERCC8 (CSA) genes. These genes are involved in the DNA repair process, specifically the transcription-coupled repair pathway, which rectifies DNA damage in actively transcribed genes. A defect in this pathway results in the accumulation of DNA damage, leading to the symptoms observed in Cockayne syndrome.