The invention relates to a method of treating a type of cancer related to activation of an RAS gene in a subject, and belongs to the field of pharmaceuticals. The method of treating cancer related to activation of an RAS gene involves administering to the subject a therapeutically effective amount of 1-methyl-4-phenyl-1,2,3,6-tetrahydropyridine, a pharmaceutically acceptable salt thereof, or a solvate thereof. 1-methyl-4-phenyl-1,2,3,6-tetrahydropyridine was found to reduce the level of RAS mRNA. 24 mM of 1-methyl-4-phenyl-1,2,3,6-tetrahydropyridine is capable of reducing RAS mRNA level by 3.5 folds. The compound of the present invention also has a significant tumor suppressive effect on a Drosophila tumor model. Clinical anti-tumor products that exploit the intervention and treatment of tumors by 1-methyl-4-phenyl-1,2,3,6-tetrahydropyridine have immense potential.