Background: Chromobox (CBX) family proteins are a class of transcriptional repressors involved in epigenetic regulation and developmental processes of various tumors, including gastric cancer. However, the function and prognosis of different CBXs in gastric cancer remain unknown. Methods: This study addresses this issue by synthesizing several mainstream databases (Oncomine, GEPIA2, cBioportal, and Kaplan-Meier plotter, among others) that currently contain many tumor samples and provide very reliable analysis results, investigating the role of CBXs in the prognosis of gastric cancer. Results: The mRNA of CBX1/2/3/4/5/8 was highly expressed in gastric cancer, the mRNA of CBX7 was lowly expressed in gastric cancer, and the mRNA expression of CBX6 was not significantly different in CRC. Besides, high and low CBXs mRNA expression correlated with cancer stage, node metastasis status, H. pylori infection status, and tumor grade in CRC patients. We found that high mRNA expression of CBX4/5/6/7/8 was significantly associated with worse overall survival (OS), progression-free survival (FP), and post-progression survival (PPS) in a large number of CRC patients. High mRNA expression of CBX3 was significantly associated with better OS and FP. We also found that none of the eight CBXs family genes had a mutation rate of less than 5% in gastric cancer, and the highest mutation rate was in CBX3 (14%). Conclusions: These results suggest that CBX3/4/5/6/7/8 could be a prognostic biomarker in gastric cancer patients.