A library of pyridines and pyrimidines has been synthesised in excellent yields employing microwave and flow chemistry methodologies. Work-up bottlenecks have been facilitated substantially by the use of supported reagents and many of the final compounds have been studied in the solid state by single crystal X-ray diffraction.