A smart H-phosphonate-mediated synthetic strategy for the sulfonylation of heteroaromatic N-oxides has been developed, by which a large variety of 2-sulfonyl quinolines/pyridines were synthesized starting from easily available sulfonyl chlorides, diisopropyl H-phosphonate and pyridine/quinoline N-oxides in one pot under metal-free conditions at room temperature.