Here, we show that the microbiome changes induced by sleeve gastrectomy (SG) reduce glucose-dependent insulinotropic polypeptide (GIP) signaling and confer resistance against diet-induced obesity (DIO) and NAFLD. Here, GIP is linked to metabolic dysfunction-associated steatotic liver disease.