Biodegradable magnesium (Mg) implants spontaneously releasing therapeutic agents against tumors are an intriguing therapeutic approach for both tissue repair and tumor treatment. Anastomotic staples are extensively used for wound closure after surgical resection in patients with colorectal tumors. However, the safety of Mg anastomosis implants for intestinal closure and the effect of tumor suppression remain elusive. Here, we used a high-purity Mg staple to study these issues. Based on the results, we found that it has the potential to heal wounds produced after colorectal tumor resection while inhibiting relapse of residual tumor cells in vitro and in vivo. After implantation of Mg staples for 7 weeks in rabbits, the intestinal wound gradually healed with no adverse effects such as leakage or inflammation. Furthermore, the implanted Mg staples inhibit the growth of colorectal tumor cells and block migration to normal organs because of the increased concentration of Mg ions and released hydrogen. Such an antitumor effect is further confirmed by the in vitro cell experiments. Mg significantly induces apoptosis of tumor cells as well as inhibits cell growth and migration. Our work presents a feasible therapeutic opinion to design Mg anastomotic staples to perform wound healing and simultaneously release tumor suppressor elements in vivo to decrease the risk of tumor recurrence and metastasis.