In summary, the candidate genes SPP1 and collagen IV screened based on bioinformatics analysis have the potential to influence the course of type 2 diabetes mellitus combined with MASLD. This evidence concerns the gene SPP1 and diabetes mellitus.