The core genes DNAJB9, CMAS, FASLG, ABHD10, ATRN, PLA2G2F, ITIH2, ROBO1, SH3GL2, and CNR1 were found to be related to NAFLD and T2D for the first time, and this provides a new research target for the precise treatment of NAFLD and T2D comorbidities. Here, ITIH2 is linked to type 2 diabetes mellitus.