The chemical nature of the 5′ end of RNA is a key determinant of RNA stability, processing, localization, translation efficiency1,2, and has been proposed to provide a layer of “epitranscriptomic” gene regulation3. Recently it has been shown that some bacterial RNA species carry a 5′-end structure reminiscent of the 5′ 7-methylguanylate “cap” in eukaryotic RNA. In particular, RNA species containing a 5′-end nicotinamide adenine dinucleotide (NAD+) or 3′-desphospho-coenzyme A (dpCoA) have been identified in both Gram-negative and Gram-positive bacteria3–6. It has been proposed that NAD+, reduced NAD+ (NADH), and dpCoA caps are added to RNA after transcription initiation, in a manner analogous to the addition of 7-methylguanylate caps6–8. Here, we show instead that NAD+, NADH, and dpCoA are incorporated into RNA during transcription initiation, by serving as non-canonical initiating nucleotides (NCINs) for de novo transcription initiation by cellular RNA polymerase (RNAP). We further show that both bacterial RNAP and eukaryotic RNAP II incorporate NCIN caps, that promoter DNA sequences at and upstream of the transcription start site determine the efficiency of NCIN capping, that NCIN capping occurs in vivo, and that NCIN capping has functional consequences. We report crystal structures of transcription initiation complexes containing NCIN-capped RNA products. Our results define the mechanism and structural basis of NCIN capping, and suggest that NCIN-mediated “ab initio capping” may occur in all organisms