Tumor microenvironment (TME) is vital for the occurrence and development of breast cancer (BRCA). However, it remains challenging to understand the dynamic modulation of the stromal and immune components comprehensively in TME. Herein, we used ESTIMATE and CIBERSORT algorithm to estimate the number of stromal and immune components and the abundance of tumor-infiltrating immune cells (TICs) in 582 BRCA cases from gene expression omnibus (GEO) database. We employed three regression models including univariable Cox proportion, LASSO regression model and multivariate Cox regression, and identified 7 immune-specific genes related to BRCA survival. Of 7 genes, ATPase Secretory Pathway Ca2+ Transporting 2 (ATP2C2) attracts our attention for significantly predicting prognosis of BRCA patients. Further analysis indicated that ATP2C2 expression was closely related to the clinicopathological features (age, T- and N-staging) and negatively correlated with patients’ survival in BRCA. Gene Set Enrichment Analysis (GSEA) was performed to reveal pathway enrichment between ATP2C2high and ATP2C2low groups. The low ATP2C2 expression groups’ genes were mainly enriched for immune-related activities, while those in the ATP2C2 high-expression group were largely enriched in metabolic-related pathways. Notably, Pearson’s correlation analysis identified that ATP2C2 expression was positively correlated with T follicular helper (Tfh) cells, and negatively correlated with gamma delta (γδ) T cell, suggesting that ATP2C2 might be accountable for the maintenance of immune-dominant status for TME. To sum up, this study comprehensively analyzed the TME and shed light on prognostic immune-related biomarkers for BRCA. In particular, ATP2C2 might be helpful for predicting the prognosis of BRCA patients, which provided an extra insight for BRCA treatment.