A facile electrochemical sulfonylative cycloetherification of linear unsaturated alcohols with sulfonyl hydrazides under mild conditions has been accomplished. This catalyst-and oxidant-free protocol proceeds via electro-oxidation, followed by radical addition, as well as an intramolecular oxygen nucleophilic process. This methodology is compatible with a broad substrate scope and good functional group compatibility, which provides a valuable and convenient synthetic tool for the synthesis of saturated five-, six-, seven-, and eight-membered ring oxygen heterocycles. Furthermore, sulfonylative cycloesterification of linear unsaturated acids toward the lactone products has also been established under this electrochemical system. In addition, control experiments indicated that the N−H bonds of the sulfonyl hydrazide molecule are non-essential.