The invention discloses 4-alkyl-2-arylamino-5-(1,2,4-triazole-1-group) thiazole and salts thereof shown in a formula I, wherein R is selected from H, alkyl groups of C1-C2 and straight-chain alkyl groups or branched-chain alkyl groups of C3-C4; X1, X2, X3, X4 and X5 are selected from hydrogen, alkyl groups of C1-C2, hydroxide group, methoxy group, oxyethyl group, trifluoromethyl, fluorine, chlorine, bromine, nitryl, amino group, acetyl amino group, methanesulfamide, ethoxycarbonyl or carboxyl; and the salts of the 4-alkyl-2-arylamino-5-(1,2,4-triazole-1-group) thiazole are selected from hydrochloride, hydrobromide, nitrate, sulfate, phosphate, mesylate, p-toluene sulfonate, tartrate, lactate or malate. The 4-alkyl-2-arylamino-5-(1,2,4-triazole-1-group) thiazole is applied to preparation of medicaments for resisting cervical cancer or lung neoplasms.