An iodoxybenzoic acid-mediated selected oxidative cyclization of N-hydroxyalkyl enamines was developed. Through this strategy, a variety of 2,3-disubstituted pyrroles and pyridines were produced in good selectivity involving oxidation of alcohol, followed by condensation of aldehyde and alpha-C of enamines. Furthermore, this metal-free method has several advantages, including the use of environmentally friendly reagents, broad substrate scope, mild reaction conditions, and high efficiency.