The present invention provides a method for manufacturing a compound represented by formula (I). With this method, provided are a method for manufacturing a 4-heteroaryl-N-(2-phenyl-[1,2,4]triazolo[1,5-a]pyridin-7-yl)-1H-pyrazole-5-carboxylic acid amide derivative and an intermediate for this manufacturing method.