Benzothiazoles and thiazolopyridines are widely prevalent in pharmaceuticals and organic materials. Herein, we report a metal- and reagent-free method for the uniform synthesis of benzothiazoles and thiazolopyridines through 2,2,6,6-tetramethylpiperidine-N-oxyl radical (TEMPO)-catalyzed electrolytic C–H thiolation. This dehydrogenative coupling process provides access to a host of benzothiazoles and thiazolopyridines from N-(hetero)arylthioamides. Mechanistic studies suggested that the thioamide substrate was oxidized with the electrochemically generated TEMPO+ through an inner-sphere electron transfer to afford a thioamidyl radical, which undergoes homolytic aromatic substitution to form the key C–S bond.