We included 84,193 people with type 2 diabetes initiating SGLT2i and 28,081 initiating GLP1-RA (ESM Fig. 1). Here, GCG is linked to type 2 diabetes mellitus.