The XPG/ERCC5 endonuclease was originally identified as the causative gene for Xeroderma Pigmentosum complementation group G. Ever since its discovery, in depth biochemical, structural and cell biological studies have provided detailed mechanistic insight into its function in excising DNA damage in nucleotide excision repair, together with the ERCC1–XPF endonuclease. This evidence concerns the gene ERCC4 and xeroderma pigmentosum.