Non-alcoholic fatty liver disease (NAFLD) stands as the most prevalent hepatic disorder, with bariatric surgery emerging as the most effective intervention for NAFLD remission. Sleeve gastrectomy (SG) has notably ascended as the predominant procedure due to its comparative simplicity and consistent surgical outcomes. Nonetheless, the underlying mechanisms remain unclear. In this study, we probed the therapeutic potential of SG for NAFLD induced by a high-fat diet (HFD) in mice, with a focus on its impact on liver lipid accumulation, macrophage polarization, and the role of the histone methyltransferase Setdb2. SG prompted significant weight loss, diminished liver size and liver-to-body weight ratio, and enhanced liver function, evidenced by reduced serum levels of triglycerides (TG), total cholesterol (T-CHO), alanine aminotransferase (ALT), and aspartate aminotransferase (AST). Histological examination confirmed a reduction in liver lipid accumulation. Additionally, flow cytometry unveiled an increased proportion of M2 macrophages and a decrease in Setdb2 expression was shown in the SG group, suggesting an association between Setdb2 levels and postsurgical macrophage polarization. Furthermore, the conditional knockout of Setdb2 in mice further mitigated HFD-induced steatosis and promoted the M2 macrophage phenotype. Mechanistically, Setdb2 knockout in bone marrow-derived macrophages (BMDMs) favored M2 polarization, with RNA sequencing and western blotting analyses corroborating the upregulation of the PI3K/Akt signaling pathway. The effects of Setdb2 on macrophage activation were nullified by the PI3K inhibitor LY294002, suggesting that Setdb2 facilitates alternative macrophage activation through the PI3K/Akt signaling pathway. These comprehensive findings underscore the potential of SG as a therapeutic intervention for NAFLD by regulating the critical function of Setdb2 in macrophage polarization and activation, thereby offering novel insights into NAFLD pathogenesis and therapeutic targets.