Our study demonstrated distinct roles of nonpeptidergic IB4(+) and peptidergic TRPV1(+) neurons in mediating cancer-induced nociception. Here, TRPV1 is linked to cancer.