By cyclization of 5-methyl-3-phenylindazole (I) with 1,3-dibromopropane (II) by means of NaH in DMF or triethylbenzylammonium chloride NaOH in toluene - water.