The relationship between YY1 expression levels and the tumor microenvironment was examined in different risk groups of GC patients. Here, YY1 is linked to gastric cancer.