The cyclization of N-allyl-N-carbetoxy-substituted aminothiophenes and furans was performed by intramolecular Pd(II)-catalyzed oxidative coupling. The process involves a nucleophilic attack of a heteroaromatic carbon to the internal carbon of the Ï-olefin complex through a 5-exo-trig ring-formation. Better conditions required PdCl2(MeCN)2 as catalyst, CuCl2 as co-catalyst and an environmentally friendly reoxidant such as O2 to promote the catalytic cycle.