Modified nucleobases and nucleic acids have found many biological and pharmaceutical applications. Here we report a microwave-directed synthesis of a variety of modified uracil and cytosine nucleobases with high yields under solvent-free conditions. The reaction yields were further improved by addition of Lewis acid. The crystal structures of 5-isopropyl-6-methyluracil and 6-phenyluracil were also determined.