The invention relates to the technical field of organic synthesis, in particular to a N-(5-[1,3,4]diazole-2-yl-2H-pyrazole-3-yl)-carboxamide derivative and a microwave hydrothermal synthesis method thereof, and further relates to application of the compound. A series of basic raw materials such as amine, 2,3-dicyan-opropionate, alcohol, acyl halide and the like are used for synthetizing of pyrazolecarbonitrile, pyrazolecarbonitrile is subjected to esterification, hydrazide reaction and amidation and reacts with a cyclization agent by the microwave hydrothermal synthesis method so as to obtainN-(5-[1,3,4]diazole-2-yl-2H-pyrazole-3-yl)-carboxamide derivative (including thiadiazole and oxadiazole). The derivative has good biological activity, can inhibit various bacterial stains, and has high activity in terms of bacterial resistance and insect killing; in terms of chemical structure, the derivative, according with the general formula, is synthetized, has great variety of active groups and excellent photo-physical properties, has multiple functions in the fields such as photoelectricity, medicines, pesticides, bacteriostat, diminish inflammation and virus protection, and accordinglyhas high development and application value.