It is an object of the present invention to provide a process for industrial production of a nitrogen-containing heterocyclic compound having excellent FLT3 inhibitory activity and useful as an agent for pharmaceuticals. A compound represented by the general formula [14] (wherein R 1 represents an optionally substituted C 1-6 alkyl group, and R 8 represents a leaving group or the like) or a salt thereof.우수한 FLT3 저해 활성을 갖고, 의약품의 원약으로서 유용한 함질소 복소환 화합물의 공업적 제조 방법을 제공하는 것을 과제로 한다. 일반식 [14](식 중, R1은 치환되어도 되는 C1-6 알킬기를 나타내고; R8은 탈리기 등을 나타냄)로 나타나는 화합물 또는 그 염을 이용하는 제조 방법을 제공한다.