In conclusion, our study demonstrated that a high level of estrogen receptor expression decreases PD-1/PD-L1 expression and CD8+ T cell infiltration by suppressing Th17 cell infiltration and IL-17 signaling transduction in breast cancer. This evidence concerns the gene CD8A and breast cancer.