Disclosed in the present invention is a method for preparing nilotinib intermediate 3-(4-methyl-1H-imidazol-1-yl)-5trifluoromethyl phenylamine (I). The method comprises the following steps: taking trifluorotoluene as an initial material, and preparing the nilotinib intermediate (I) by nitration, bromization, condensation and reduction successively Compared with the prior art, the preparation method has the following advantages: a relatively high yield, the raw materials are easily obtained, a concise process and few side reactions, and is adapted to industrial production, so the development of an economic technology of the bulk drug is promoted.