Treatment of nitropyrimidine derivatives with (N-substituted) hydrazines (2 equiv.) gave 1- (substituted)-3, 5-diamino-4-nitropyrazole, providing a very mild conversion of pyrimidines into pyrazoles. This reaction provided a convenient route to precursors for new efficient and insensitive explosives.