Downregulation of TRPM7 in human cancer cells impaired cell migration and invasion; these effects could be reversed by Mg2+ supplementation. Here, TRPM7 is linked to cancer.