Findings from our population-based cohort study indicate that, compared with DPP-4i exposure, GLP-1-RA exposure is associated with a significantly lower risk of all-cause mortality and MACE in patients with IMIDs and type 2 diabetes, similar to what is observed in patients without IMIDs. The gene discussed is GLP1R; the disease is type 2 diabetes mellitus.