Abstract: Disclosed are dihydrazide compounds having formula (I) or (II), wherein R1-R4 are alkylene, substituted alkylene, aryl or polyether radical. The preparation and uses for producing medical hydrogel and medicine controlled releasing carrier of said dihydrazide compounds are provided.