The reaction of cyclic and non-cyclic enamines with 5-nitropyrimidine has been studied. Many enamines react in an inverse electron-demand Diels-Alder reaction, leading to the formation of 3-nitropyridines. N, S-ketene acetals were also found to react with 5- nitropyrimidine. The mechanism of the reaction will be discussed.