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. The gene discussed is CD274; the disease is breast carcinoma.