Abstract Reactivity of dimethyl carbonate, the environmentally friendly reagent, as methylating agent for nitrogen??containing heterocyclic compounds has been studied. Reactions of imidazole, pyrazole, pyrrole, morpholine, and piperazine with dimethyl carbonate to afford N??methylated products were reported. The reactions were carried out with neither catalyst nor solvent at a temperature range of 110–170° C under atmospheric ...