The invention provides a benzyl-substituted aniline compound represented by a formula I shown in a drawing or pharmaceutically acceptable salts thereof, wherein R1 is independently selected from -COOH, -CONH2, H, -COOR5 (R5 is methyl or ethyl), -CN, -OH and -NH2COCH3, R2 and R3 are independently selected from C6-C10 aryl, C3-C6 cyclane and C1-C3 saturated alkyl or unsaturated alkyl respectively, and R4 is independently selected from -H, ethyl and acetyl. The compound and the pharmaceutically acceptable salts thereof, provided by the invention, can be used as farnesyltransferase inhibitors or can be used for preparing drugs for preventing or treating diseases related to farnesyltransferase, thereby having good medicine preparation prospects.