Palladium-catalyzed oxidative cyclization of tertiary enamines for synthesis of 1,3,4-trisubstituted pyrroles and 1,3-disubstituted indoles.