Conclusion: Our findings suggest that the identified hub genes, particularly BGN, FN1, COL1A2, THBS2, COL3A1, and COL5A1, play crucial roles in GC prognosis and TME cell infiltration. Here, FN1 is linked to gastric cancer.