Couples transcription and DNA repair by recognizing RNA polymerase (RNAP) stalled at DNA lesions. Mediates ATP-dependent release of RNAP and its truncated transcript from the DNA, and recruitment of nucleotide excision repair machinery to the damaged site. In the N-terminal section; belongs to the UvrB family. In the C-terminal section; belongs to the helicase family. RecG subfamily.