A palladium-catalyzed reaction of
gem-dichloroolefins and a boronic acid via a tandem intramolecularC-N and intermolecular Suzuki coupling process gave corresponding substituted azaindoles orthienopyrroles. This method is a very modular protocol to synthesize all four isomers of azaindole andtwo isomers of thienopyrroles in good to excellent yield.