In this study, we examined five cancer immunity-related pathways (IFNα, IFNγ, STAT3, TGFβ and TNFα) in four large independent breast cancer cohorts (n = 6,381) and their associations with the prognosis of breast cancer subtypes. The gene discussed is TNF; the disease is cancer.