To our knowledge, our study was the first to explore the roles of Piezo2 in pan-cancer. Here, PIEZO2 is linked to cancer.