Various 2-(6-substituted 3(Z)-hexen-1,5-diynyl)anilines 1a−g were treated with potassium tert-butoxide or potassium 3-ethylpentanoxide in NMP at 60 °C for 2 h to give the corresponding 5-substituted carbazoles 2a−g in 36−65% yields together with indoles 9a−g in 21−40% yields, respectively. Exposing the trifluoroacetamide analogues 10h−k under the same reaction conditions gave the carbazoles 2b−e in 37−57%