We analyzed the gene characteristics between different HDAC clusters, and PCA and the Boruta algorithm were used to construct the HDS model to evaluate the HDAC cluster characteristics and quantify the TME of gastric cancer. Here, HDAC9 is linked to gastric cancer.