SUMMARYRNA synthesis is central to life, and RNA polymerase depends on accessory factors for recovery from stalled states and adaption to environmental changes. Here we investigated the mechanism by which a helicase-like factor HelD recycles RNA polymerase. We report a cryo-EM structure of an unprecedented complex between the Mycobacterium smegmatis RNA polymerase and HelD. The crescent-shaped HelD simultaneously penetrates deep into two RNA polymerase channels that are responsible for DNA binding and substrate delivery to the active site, thereby locking RNA polymerase in an inactive state. We show that HelD prevents non-specific interactions between RNA polymerase and DNA and dissociates transcription elongation complexes, but does not inhibit RNA polymerase binding to the initiation σ factor. The liberated RNA polymerase can either stay dormant, sequestered by HelD, or upon HelD release, restart transcription. Our results provide insights into the architecture and regulation of the highly medically-relevant mycobacterial transcription machinery and define HelD as a clearing factor that removes undesirable nucleic acids from RNA polymerase.