Tetrahydropalmatine alleviates cancer induced bone pain by inhibiting TRPV1-SP-mediated macrophage recruitment and promoting M2 polarization. Here, TRPV1 is linked to cancer.