A new approach for the synthesis of isatins and isoindigoes by an inexpensive and environmentally friendly NaI-mediated transformation is disclosed. The selectivity could be switched by simply varying the solvent, and isatins (using THF) and isoindigoes (using DMSO) could be obtained in moderate to excellent yields.