Hydrazinolysis of ethyl [(4-methyl-6-phenylpyrimidin-2-yl)oxy]acetate (1) gives the unexpected bis(4-methyl-6-phenylpyrimidin-2-yl)hydrazine (2). The desired [(4 methyl-6-phenylpyrimidin-2-yl)oxy]acetohydrazide (3) was prepared from the ester (1) with hydrazine in absolute ethanol. Starting from 3, several new hydrazones, 1,3,4 oxadiazoles, 1,3,4-thiadiazoles, 1,2,4-triazoles and 1,3-thiazoles have been synthesized. Structure of the new compounds was confirmed by elemental analysis, spectral data and alternative synthesis in certain cases. Some representative examples were evaluated for their antiinflammatory activities.