To provide an industrially useful method for producing pharmaceutically useful 4-[5-(pyridin-4-yl)-1H-1,2,4-triazol-3-yl]pyridine-2-carbonitrile, and an intermediate for producing the compound. The method for producing compound represented by formula (1) is represented by the following reaction scheme, and the intermediate is represented by the following formula (4).