Collectively, our present study suggests that solamargine alleviated proliferation, migration, and invasion of cervical cancer cells by blocking the CXCL3-mediated Erk signaling pathway, and solamargine inhibited the tumor growth of mice in vivo. The gene discussed is CXCL3; the disease is cervical cancer.