HL22 is a harmaline derivative. HL22 significantly inhibits HCT116, MGC803 and MCF7 cancer cell lines, and inhibits MGC803 cell migration and monoclonal formation. The anti-cancer mechanism of HL22 is related to a variety of metabolic pathways and can be used in the study of cancer.