Patients with a diabetes history of ≥ 7 years prior to breast cancer diagnosis had a lower risk of TNBC and HER2-positive subtypes, but a higher frequency of ER- and PR-positive tumors and grade I tumors. Here, PGR is linked to diabetes mellitus.