The gold-catalyzed reaction of pyrrole and indole oximes having a propargylgroup attached to the nitrogen atom was studied. The selective 6-endo-dig mode of cyclization was observed for the terminal alkynes giving rise to the formation of pyrazine N-oxides in the presence of a gold catalyst. However, the reaction with substituted alkyne transferred the oxime functionality intramolecularly from one