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. This evidence concerns the gene STX6 and hepatocellular carcinoma.