Facile construction of the benzofuran and chromene ring systems via PdII-catalyzed oxidative cyclization.