2-(4-N,N-dimethylaminophenyl) heterocycles are smoothly obtained from the photolysis of 4-chloro-N,N-dimethylaniline in acetonitrile in the presence of furan, pyrrole, thiophene and some of their methyl derivatives bearing a free α-position. With 2,5-dimethyl heterocycles the arylation occurs with equal efficiency in the β position. In the case of furan, when the irradiation is carried out in methanol