This study identified BRCA1 as a hub gene through key overlapping gene analysis of MASLD and DM-related datasets. Here, BRCA1 is linked to diabetes mellitus.