The 1,2,3-triazole and 1 H-1,2,3-benzotriazole-substituted 6,7-dihydroindolizin-8(5 H)-one derivatives were synthesized by the reaction of ( E)-7-(arylmethylidene)-6,7-dihydroindolizin-8(5 H)-ones with 1,2,3-triazole and 1 H-1,2,3-benzotriazole in the presence of Selectfluor in moderate yield. The structures of all the products were characterized thoroughly by nuclear magnetic resonance, infrared, and high-resolution mass spectrometry together with X-ray crystallographic analysis.