To the best of our knowledge, this is the first report of a thorough examination of STX6 in pan-cancer, and in vitro and in vivo studies were used to investigate STX6’s oncogenic mechanism in HCC and CRC. Here, STX6 is linked to cancer.