Our results clarified the significant role of DOK5 in the prognosis of GC and offer a potential mechanism by which DOK5 expression might monitor tumor immunity—regulation of the infiltration of immune cells in GC. Here, DOK5 is linked to gastric cancer.