Treatment of 5-amino-1,3-dialkyl-2,3-dihydro-1H-imidazo[4,5-b]pyridin-2-ones with sodium nitrite in aqueous HCl gave 1,3-dialkyl-1H-imidazo[4,5-b]pyridine-2,5(3H,4H)-diones which were nitrated with potassium nitrate in sulfuric acid to 6-nitro derivatives, and the latter underwent recyclization into 4-amino-1,3dialkyl-5-(1H-pyrazol-5-yl)-2,3-dihydro-1H-imidazol-2-ones by the action of hydrazine hydrate. R = Me (a), Et (b).