This study indicates that across the subtypes of BC and EC, in both pre- and postmenopausal tumors, HSD3B1 genotypes distinctly influence transcriptional profiles, genomic alterations, and differences in the expression of immune and non-immune pathways. Here, HSD3B1 is linked to breast cancer.