In this study, we established a novel immunotyping and a tumour-infiltrating immune cell-based breast cancer prognostic prediction model by analysing the prognostic significance of multiple immune cell subsets in luminal B, HER2-enriched and basal-like breast cancer for the first time. This evidence concerns the gene ERBB2 and breast carcinoma.