The present invention relates to a process for producing a compound represented by the following formula (4), which comprises reacting a compound represented by the following formula (2) with thionyl chloride to obtain a compound represented by the following formula (1) : (In the equation R 1 represents an ethyl group or the like, R represents a halogen atom, etc., n represents 0, 1, 2 or 3, and M represents potassium or the like. Reacting the compound represented by the formula (1) with a compound represented by the following formula (5) to prepare a compound represented by the following formula (3) or an acid salt thereof: (Wherein A 1 represents a nitrogen atom or = CH-, R 5 represents a trifluoromethyl group, and m represents 1 or 2.) Step C: a step of reacting the compound represented by the formula (3) or an acidic salt thereof in the presence of an acid at 100 ° C to 180 ° C to obtain a compound represented by the formula (4) .본 발명은 하기 식 (4)로 표시되는 화합물의 제조 방법으로서, 상기 방법은 하기 식 (2)로 표시되는 화합물을 염화티오닐과 반응시켜 하기 식 (1)로 표시되는 화합물을 수득하는 단계 A:(식 중R1은 에틸기 등을 나타내고, R은 할로겐 원자 등을 나타내고, n은 0, 1, 2, 또는 3을 나타내고, M은 칼륨 등을 나타낸다.)상기 식 (1)로 표시되는 화합물을 하기 식 (5)로 표시되는 화합물과 반응시켜 하기 식 (3)으로 표시되는 화합물 또는 이의 산성염을 제조하는 단계 B: 및(식 중 A1은 질소 원자 또는 =CH-를 나타내고, R5는 트리플루오로메틸기 등을 나타내고, m은 1 또는 2를 나타낸다.)상기 식 (3)으로 표시되는 화합물 또는 이의 산성 염을 산의 존재 하에서 100℃ 내지 180℃에서 반응시켜 하기 식 (4)로 표시되는 화합물을 수득하는 단계 C:에 의한 제조 방법이다.