 The production of the highly stable dinitrogen from the hydrazine derivative helps to drive the reaction.Being bifunctional, with two amines, hydrazine is a key building block for the preparation of many heterocyclic compounds via condensation with a range of difunctional electrophiles.With 2,4-pentanedione, it condenses to give the 3,5-dimethylpyrazole.