This study aims to determine whether ER downregulates the expression of PD-1/PD-L1, reduces the infiltration of CD8+ T cells, and affects the immune microenvironment by decreasing T-helper 17 (Th17) cell infiltration and inhibiting IL-17 signaling in breast cancer. This evidence concerns the gene CD8A and breast cancer.