Breast cancer is one of the leading cancer deaths around the world. Targeted drugs have greatly increased the survival rate of breast cancer patients in recent years. But in some patients, the current regimen is still ineffective. Therefore, more therapeutic targets for treating breast cancer are demanding. The core heterochromatin-related genes of breast cancer were identified by utilizing prognostic survival analysis and multivariate Cox hazard proportional regression analysis. Both breast cancer and adjacent normal tissue were collected and analyzed with western blot and immunohistochemistry. Colony formation assay, CCK-8 assay, and EdU assay were used to measure the effect of CBX3 on breast cancer cell growth, wound-healing assay and Transwell assay were used to analyze the effect of CBX3 on breast cancer cell migration and invasion. Flow cytometry assay and western blot were used to study the molecular mechanism of CBX3 in breast cancer. High expression of heterochromatin-related proteins CBX3, H2AFY, and SULF1 showed a poor prognosis in patients in both TCGA dataset and GEO datasets. Western blot demonstrated that the expression level of CBX3 was significantly higher in breast cancer than that in adjacent normal tissues. Colony formation assay, CCK-8 assay, and EdU assay showed that the knockdown of CBX3 could significantly inhibit breast cancer cell growth, and the overexpression of CBX3 could promote the growth of breast cancer cells. Transwell assay and wound healing assay showed that knockdown of CBX3 inhibited breast cancer cell migration and invasion, and the overexpression of CBX3 promoted breast cancer cell migration and invasion. Western blot showed that CBX3 might promote breast cancer cell proliferation, invasion, and migration in breast cancer by modulating the ERK1/2 signaling pathway and epithelial-mesenchymal transition (EMT)-related genes. CBX3 was a biomarker of poor prognosis in breast cancer patients. CBX3 promoted the proliferation of breast cancer cells through the ERK signaling pathway, and migration and invasion of breast cancer cells through EMT-related genes. The CBX3/p-ERK1/2 signaling axis might provide a new therapeutic method against breast cancer.