Microwave heating is used for the preparation of 1,4-dihydropyridines and then, in conjunction with UV irradiation, is used for the efficient oxidation of the 1,4-dihydropyridines to pyridines. The oxidation reactions are performed in a sealed vessel using oxygen as the oxidant and an electrodeless discharge lamp as the irradiation source.