A series of β-carboline derivatives (1–6) have been synthesized and evaluated for their anticancer activities. We observed that compound 5 exhibited significant anticancer activities over both human gastric cancer and human hepatic cancer cell lines, and compound 6, which is slightly different from 5 in its structure, showed good anticancer activity over human colorectal cancer cell line.