The inhibitory activity on cancer cell growth and proliferation, combined with the TRPM-dependent mechanism, reveals the anticancer potential of midazolam as a TRPM7 inhibitor and supports the suggestion that TRPM7 is a valuable target for pharmaceutical intervention. Here, TRPM7 is linked to cancer.