In summary, our study found a novel association between genetic variants in TPCN2 and P2RX4 and the risk of developing cancer, metastatic cancer, cancer recurrence at a global level, or various types of cancer at the local level in the UK Biobank population. Here, TPCN2 is linked to metastatic malignant neoplasm.